You can do this using the orderby
parameter of WP_Query
. If you set it to comment_count
, you can get the most popular. You will probably need to filter the WHERE
parameter to set your date on the query (unless you want the last week or the last month or something simple like that) though.
Related Posts:
- WordPress popular posts by week code
- How to make two pages in wordpress to display recent pages and popular pages
- How to display popular posts in page?
- Adding popular posts by category in single posts?
- How to display the top 5 popular links in the header?
- popular post for week and month
- Popular Post By Month in WordPress
- Popular post ‘of the week’
- How to show a popular post in wordpress in last 24 hours?
- How do I display the popular post and again display another set of popular post after sometime including the 1st sets of popular post?
- Show popular post in another php website via WP REST JSON API
- Show the most popular post per week
- Popular posts by view with Jetpack
- Sort Popular Posts by Views for the Last Week
- Best approach to create Hot and Trending sections
- Show most popular post of last 12 months
- How to display most viewed post in my sidebar?
- How to get popular post from across a network?
- How do I get a list of popular posts by views?
- How to install WordPress Popular Posts plugin twice?
- Most commented / popular posts and offset
- Most popular post for last 7 days
- Create a list-style post of popular posts for the week?
- popular post weekly and monthly
- How do display most popular post from a year earlier to the day?
- API endpoint to get most-read and popular posts
- Display most popular in the past two days
- Show popular post by category code
- Display most popular posts of category
- Can’t get post thumbnail to display in foreach loop
- wp query for popular post with simple field
- How to show Best Selling WP E-Commerce Products
- Show Top 10 posts in a rss feed
- Query posts by views on category page
- Show tags of currently popular (by views) posts
- How to get a post views count using ‘WordPress popular posts’ plugin
- How to Display Most View Post in the template file?
- Display query post based on two orderby value in wordpress
- Get a page ancestor from a most viewed list
- Display most popular posts
- How to properly get popular Posts by multiple Values
- Popular posts – based on pageviews
- Pull ‘Popular Posts’ within specific timeframe
- Display popular posts by how many hits it got within 30 days of publishing
- Image inside the content is replaced with featured image from my older post