0

How can I make a pager for views output to limit them at 10 entries?

$view = views_get_view('myview', 'default');
$view->override_path = $_GET['q'];
$view_output = $view->execute_display('page_1', array($tid));

1 Answer 1

0

Drupal Views module provides this functionality. You don't need to write the code for that. See the image belowenter image description here Here you can set item to display as want. It has many more options

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.