Displaying most discussed (commented) posts within past 7 days - Wordpress Solution
[Solved] - Displaying most discussed (commented) posts within past 7 days - Wordpress Solution |
---|
Try following codes |
I have a simple question. A really simple question to be honest but I can't figure it out, no matter how often I go to wordpress.org and read up on their docs.
All I want is to display the most commented posts within the past week (i.e. Mon-Sun) or the past 7 days (whichever is easier).
I tried doing this already with a query within the loop but for some reason it's showing the most commented posts of all time even though I added some parameters to the query to specify the range of posts that I wanted to have covered.
Can someone take a look at the code below and tell me what to change?
Solution - 1Replace: With: Enjoy Solution - 2something like this =)
Solution - 3Use Variables aren't parsed when in single quotes. Solution - 4In theory, this plugin should be able to do the heavy lifting for you: http://wordpress.org/extend/plugins/popularity-contest You set it up so you only use comment weight, and then use the above code to parse for the last 7 days. |
Date: 2022-10-21 05:22:33 |
Category: Wordpress |