Count the number of posts displayed on a page
-
Hello,
I am trying desperately to find the way to count the number of post displayed on a page. If I count the published it works of course but I don’t need that.
I want to count the number of post displayed on the page let’s say 3 (and in the WP settings I only show 3 posts per page), in order to hide a title like “timeline” before next_post_link(). So if on a result page I only have 1 result the title “timeline” won’t show.
hope I am clear enough… Thanks for your help!
Xavier
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Count the number of posts displayed on a page’ is closed to new replies.