How to show post count on archive pages
-
I need to add a line at the top of each archive page that states the?post count for that archive page, like this:
The search “Colorado” yielded 5 articles.
What is the best way to do this?
(Please note: I already looked at the “Simple Blog Stats” plugin, which can output the number of total posts on the entire site, which we don’t want, or it can output the post count manually (if I create each archive page and plug in the shortcode for each) but I need to output the number of posts per archive page automatically as we have hundreds of archive pages. If it helps, I am using Elementor Pro and Advanced Custom Fields as well.)
Thank you!
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘How to show post count on archive pages’ is closed to new replies.