List popular posts by total comments

Comment count can be a great indicator of a post’s popularity. You can use the orderby parameter to change how Display Posts sorts the results.

[display-posts orderby="comment_count" order="DESC"]

If you have more social engagement than on-site commenting, you might try listing popular content by share count instead.

Published by Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributor to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Join the Conversation

  1. How about listing by view count? I tried orderby=”post_views_count” but the list didn’t match my site stats list (All time view count).

    1. The pageview data must be stored in your WordPress database for this plugin to sort by it. So step one is finding a way to get it there.

      I don’t recommend any of the “post view” plugins that update the database on every pageview. This is incredibly taxing on the server, and if you ever have a meaningful amount of traffic your site will crash.

      I haven’t been able to find any plugins that can periodically pull Google Analytics data into WordPress and attach it to posts. If you find one, let me know!

      If you enable the Site Stats module in the Jetpack plugin, you can install my BE Stats plugin to pull this data into WordPress. BE Stats has built-in support for Display Posts, so you can simply type [display-posts orderby="popular"] and it will sort by highest pageview.

Leave a comment

Your email address will not be published. Required fields are marked *