Anyone know how to count updates post per day (example: in this day/date) in specific categories with wordpress query ?
Thanks a lot.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know if I fully understand your question, do you want a count of posts in a specific category posted on a specific day/date?
In this case, you can just create an instance of WP_Query and pass in the time parameters and categories you want you look at.
Something like,
If you want to return posts based on the modified date (you state count updates post per day, which I don’t understand), then you need to add a ‘posts_where’ filter instead of the time parameters of args.
See the time parameters link above for sample code and explanations on using this – but in slightly modifying one of their examples you can create something like this.