Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi Michal,

    Could you please post your code (wpp shortcode or wpp_get_mostpopular() template tag) here so I can take a look into it?

    Thread Starter mbehal.cz

    (@mbehalcz)

    Sure:

    <?php wpp_get_mostpopular("range=daily&stats_views=1&cat=998&title_length=0&thumbnail_width=150&post_html='<li>{thumb}<div>{stats}</div></li>'"); ?>

    Plugin Author Hector Cabrera

    (@hcabrera)

    I’m unable to reproduce this issue. For me, the thumbnails are ordered by views: screenshot.

    Try disabling all of your plugins and check if the problem persists.

    Thread Starter mbehal.cz

    (@mbehalcz)

    I tried disable all plugins, but code still doesn’t work.

    Plugin Author Hector Cabrera

    (@hcabrera)

    The same happens if you switch to a different theme? (eg. Twenty Thirteen). How about the stats section? Are posts not ordered by views there as well?

    Thread Starter mbehal.cz

    (@mbehalcz)

    I found the problem actually. Stats are ordering ok.

    Problem is with category. Without this code “&cat=998” it shows well ordered.

    Anyway I don’t know how to fix this with category code.

    Do you have same query posts in you code, where I can put category select? I need this plugin only for this category, so it doesn’t mind if it won’t work for others.

    Plugin Author Hector Cabrera

    (@hcabrera)

    That’s odd. During my tests I also used the cat parameter and everything worked as expected – of course, I use dummy data during my tests so I may be overlooking something.

    Is there any chance I can get a copy of your site’s database? That way, I may be able to reproduce the issue locally and fix it. If you’re OK with that, please get in touch with me via hcabrerab at gmail and let’s continue from there.

    Thread Starter mbehal.cz

    (@mbehalcz)

    I’m just a webdesigner and coder for this web, so I have to contact web owner with that. I’ll let you know, when he write me back.

    Thanks for you help for now and have a good day,
    Michal

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, please keep me posted.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Plugin doesn't order by views’ is closed to new replies.