Programmatically Display a Certain Page of Data with Drupal Views
Category:
Here is how you can programmatically load a Drupal view, then specify a particular page of data to show, then print out the view.
$what_page_to_show = 10; $view = views_get_view('my_example_view'); $view->pager['current_page'] = $what_page_to_show; print $view->preview();