• Resolved ryanmc

    (@ryanmc)


    I am having a little trouble with query_posts. It seems that when I am not logged in it does not show all the results, but when I log in it does. Here is the exact code I am using

    <?php $page = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; ?>
    <?php query_posts(‘cat=37&posts_per_page=100&paged=’.$page); ?>

    I did my best to compare the results and it looks like it is just missing the 8 latest posts for logged out users.

    I have no idea how to debug this. Can anyone give me some pointers?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ryanmc

    (@ryanmc)

    Nevermind, when I disabled all my plugins the problem went away. I think it might have been the wp-supercache plugin made a static copy of that page and never updated it.

    Alwyn Botha

    (@123milliseconds)

    Please mark thread as resolved so that

    – others with similar problem can see it as resolved and will read this thread for help if they have similar problem

    – people providing help see it as resolved and will not waste time reading this post.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘query_posts results change when I log in’ is closed to new replies.