ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

orderby view count, unexpected result

September 23, 2011 11:42pm

Subscribe [2]
  • #1 / Sep 23, 2011 11:42pm

    Joobs

    362 posts

    I have a page that orders by view count, this page has been working correctly up to today.

    Currently the top entry is a post that was posted today, and has 72 views, the next post has over 8000 views and they steadily decrease after that.

    I have no idea why that post has jumped to the top?

    Today I did optimise the database tables, could that have caused something to go wrong.  I have since repaired and optimised the tables again to see if that helped.

    {exp:channel:entries site="siteA" channel="posts" limit="600" orderby="view_count_one" status="open"  disable="member_data|trackbacks"}
    {view_count_one} - {title} - {channel_short_name}<br>
    {/exp:channel:entries}

    v2.2.1 - Build: 20110705

  • #2 / Sep 23, 2011 11:50pm

    Joobs

    362 posts

    turns out a blogger decided to make the post sticky!

  • #3 / Sep 24, 2011 10:27am

    Mark Bowen

    12637 posts

    Hi Joobs,

    Ah good ole stickies!! 😉

    Glad you got that one sorted out.

    If anything else crops up then please don’t hesitate to post again as needed.

    Thanks,

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases