Views Pager has a nice feature to Display the Record Count at either at the top or the bottom of the view.

This count of records is accurate using views_php-7.x-1.0-alpha2, it looks like it was just fixed in this release.

However, this fix wasn't ported over to the most recent 7.x-2.x-dev version of this release. In 7.x-2.x-dev, the
Record Count is equal to the number of records in the view before the Views PHP Filter has taken effect.

This issue can be replicated:
1. Create a new view of nodes
2. In the view editor, under Pager, use a Full pager and clicking on the "Paged, X items" link
3. Scroll to the bottom and enable the Record Count (can be either at the top or bottom of the page)
4. Add a PHP Filter that filters some of the nodes out
5. Check the Record Count for the view.

The Record Count is enabled by editing the Pager for the view...scroll down to the bottom of the popup that appears when clicking on the pager edit link. See attached screenshot (RecordCount.png).

CommentFileSizeAuthor
#4 RecordCount.png129.75 KBDarrellDuane
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DarrellDuane created an issue. See original summary.

fizk’s picture

I don't see the Record Count option under the pager settings page. Can you attach a screenshot?

fizk’s picture

Status: Active » Postponed (maintainer needs more info)
DarrellDuane’s picture

Issue summary: View changes
FileSize
129.75 KB
DarrellDuane’s picture

Status: Postponed (maintainer needs more info) » Active

So I neglected one very important piece of information. You need to have the Views Record Count module installed.