/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$view = views_get_view($view_name); $display_id = 'page_1'; // Can be feed_1 or block_1 $view->set_display($display_id); $view->preview = TRUE; $view->is_cacheable = FALSE; $data = $view->render($display_id); // render return $data;
URL: http://www.jayboodhun.com