Create views programmatically
Copy this code and paste it in your HTML
<?php
$display_id = 'page_1';
$view = views_get_view('view_name');
//avoid error if view is not created yet !
if ($view && !empty($view)) { print $view->execute_display($display_id , $view_args);
}
?>
Report this snippet
Comments
Subscribe to comments