Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author stepasyuk

    (@stepasyuk)

    Hello @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

    (@andygroove)

    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 3 years, 5 months ago by andygroove.
    Plugin Author stepasyuk

    (@stepasyuk)

    @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

    (@andygroove)

    I tried all variants but nothing happened
    In “get request” nothing(((

    https://test.andygroove.com/agro2/offers/

    Plugin Author stepasyuk

    (@stepasyuk)

    @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.