Answer the question
In order to leave comments, you need to log in
How to display the number of posts in a category for today?
Good afternoon. Tell me, how can I display the number of posts in a rubric for today, next to the total number of posts?
So that in the end it turned out like this:
First rubric (total 222) +11 today
Second rubric (total 323) +5 today
I found a way to display the total number of posts in a category, I found a way to display posts for today, but how to display their number - here with this while the problem.
I will be grateful. Thank you!
Answer the question
In order to leave comments, you need to log in
found a way to display posts for today,
echo $today_posts->post_count;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question