• Resolved cian1991ferrari

    (@cian1991ferrari)


    Hi All,

    I’m using a highly modified TwentyTen theme for my website but i’ve completely removed all twentyten links etc.

    I used to use a different theme but I revamped the site and now since this there are lots of unnecessary posts. I put all these posts in a category called “Archives” and got the id of this category to be 22. Now I used my loop as below but added the line below into the loop.

    Line added: <?php query_posts($query_string . '&cat=-22'); ?>

    Current Loop:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    This code recognises the category and excludes all posts when showing the loop and it recognises that I have 3 pages of posts which are not in this category and should display. HOWEVER, the 3 pages all show the latest 5 posts, i.e. I click later posts and it changes to post page 2 but still shows only the latest 5?? Can someone help me on this?

    For clarity I have changed my site name in the code to be ‘sitename’.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Loop Problem Excluding Category’ is closed to new replies.