Title: Sorting by Top posts
Last modified: October 18, 2021

---

# Sorting by Top posts

 *  Resolved [andygroove](https://wordpress.org/support/users/andygroove/)
 * (@andygroove)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sorting-by-top-posts/)
 * Hello
    Thank you for all answers) I have a question about plugin post-views-counter(
   [https://dfactory.eu/docs/post-views-counter/developers-api/](https://dfactory.eu/docs/post-views-counter/developers-api/))
   Can I make a Sorting by Top posts [https://snipboard.io/JFzk4Q.jpg](https://snipboard.io/JFzk4Q.jpg)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [stepasyuk](https://wordpress.org/support/users/stepasyuk/)
 * (@stepasyuk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sorting-by-top-posts/#post-14984363)
 * Hello [@andygroove](https://wordpress.org/support/users/andygroove/).
 * Of course you can, but you should use “Meta key numeric” value for the “Order
   by” option. And you should be sure, that your posts views counter plugin uses
   exactly ‘post_views’ meta key.
 *  Thread Starter [andygroove](https://wordpress.org/support/users/andygroove/)
 * (@andygroove)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sorting-by-top-posts/#post-14984722)
 * meta key post_views_count
    but this dont work and author of plugin says “`You
   just need to add:
 * ‘orderby’ => ‘post_views’;
 * to any WP query. You can use any other WP_Query parameters as you’d normally 
   do and no meta_key or orderby meta_value is required.`”
    -  This reply was modified 4 years, 7 months ago by [andygroove](https://wordpress.org/support/users/andygroove/).
 *  Plugin Author [stepasyuk](https://wordpress.org/support/users/stepasyuk/)
 * (@stepasyuk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sorting-by-top-posts/#post-14984742)
 * [@andygroove](https://wordpress.org/support/users/andygroove/) I think the best
   way is to try both options:
    – to use ‘post_views’ as Meta key – to use ‘post_views’
   as Meta key numeric And to check what will get better results.
 *  Thread Starter [andygroove](https://wordpress.org/support/users/andygroove/)
 * (@andygroove)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sorting-by-top-posts/#post-14985857)
 * I tried all variants but nothing happened
    In “get request” nothing(((
 * [https://test.andygroove.com/agro2/offers/](https://test.andygroove.com/agro2/offers/)
 *  Plugin Author [stepasyuk](https://wordpress.org/support/users/stepasyuk/)
 * (@stepasyuk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/sorting-by-top-posts/#post-14987781)
 * [@andygroove](https://wordpress.org/support/users/andygroove/) if you use PRO
   version you should write support questions in comments on CodeCanyoun from the
   account you purchased the plugin.
    This forum support is for free version plugin
   only.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Sorting by Top posts’ is closed to new replies.

 * ![](https://ps.w.org/filter-everything/assets/icon-256x256.png?rev=3487105)
 * [Filter Everything — WordPress & WooCommerce Filters](https://wordpress.org/plugins/filter-everything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/filter-everything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/filter-everything/)
 * [Active Topics](https://wordpress.org/support/plugin/filter-everything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/filter-everything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/filter-everything/reviews/)

## Tags

 * [sorting](https://wordpress.org/support/topic-tag/sorting/)

 * 5 replies
 * 2 participants
 * Last reply from: [stepasyuk](https://wordpress.org/support/users/stepasyuk/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/sorting-by-top-posts/#post-14987781)
 * Status: resolved