• Resolved herringsman

    (@herringsman)


    I have a website based on the TwentyTen theme.

    https://www.fcyrugby.com

    It uses a static front page and there are posts in five categories on five separate pages, each page showing posts from one category only… except for my “main blog page” which for some reason shows the posts from all categories, despite trying various modifications to the code which are posted in the coda and on this forum.

    Might it be something to do with it not being the front page? Anyhow here is the code that is in my template present:

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

    I have also tried

    <?php query_posts($query_string . '&cat=1'); ?>

    This is my first site in WordPress, so apologies if any of the terms are incorrect and thankyou for any help you can give.

    Polite Request: I have searched the coda and tried various solutions posted elsewhere in the forum so please do no reply by just posting links to these.

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Display posts from one category only’ is closed to new replies.