Drupal Views: Show count

The view results count is stored in the view object and you can display it by adding a PHP header or footer to your view. In order to have PHP in views you need the module Views PHP, so install it first then add a header or footer with this code.

// Dispaly count
$view = views_get_current_view();
echo '

'.$view->total_rows.' result(s)'.'

'; ?>

Leave a comment

Your email address will not be published.