Title: Get most viewed posts
Last modified: June 2, 2019

---

# Get most viewed posts

 *  Resolved [simkog](https://wordpress.org/support/users/simkog/)
 * (@simkog)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/get-most-viewed-posts/)
 * Dear Developer,
 * Is it possible to display the posts ordered by view count? I want to list the
   first 6 post.
 * On your support page it says that it supports `meta_key` and `meta_value`. I 
   tried this shortcode, but it gives an empty result only.
 * `[display-posts posts_per_page="6" image_size="thumbnail" include_excerpt="true"
   orderby="meta_value_num" meta_key="post_views_count" order="DESC"]`
 * Best regards,
    Gergo

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/get-most-viewed-posts/#post-11597020)
 * Do you have a plugin that is storing the view count on your posts using the `
   post_views_count` key? If you’re getting no results, I’m guessing you don’t have
   anything storing the view count (which is a good thing since that would be terribly
   taxing on your server).
 * If you have Jetpack installed and the Stats module enabled, you can install BE
   Stats to attach this data as metadata on the post. You can then use [display-
   posts orderby=”popular”]
 * Or you can display posts by [share count](https://displayposts.com/2019/01/04/most-popular-posts-by-social-shares/)(
   a great metric for popularity if your content is often shared) or [comment count](https://displayposts.com/2019/01/08/list-popular-posts-by-total-comments/).

Viewing 1 replies (of 1 total)

The topic ‘Get most viewed posts’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/get-most-viewed-posts/#post-11597020)
 * Status: resolved