• Resolved gnuss

    (@gnuss)


    Hello ??

    On my blog I have category called “News”. Is there a way to keep this category from showing up on the front page of my blog? (I still want i to be viewable under the News category though, just not on the front page).

    I’m using a child theme of Twentyten, I’m a bit unsure of how to do this, I was thinking changing the loop.php of the child theme, but not sure what to write or where to put it.

    Any help is appreciated ??

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

    (@gnuss)

    Never mind I found the solution ??

    To exclude category 3 from the main page I had to add this right before my loop in loop.php.

    <?php
    if (is_home()) {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("cat=-3&paged=$paged");
    }
    ?>

    Thanks for posting the solution! Exactly what I have been searching for…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘exclude category from front page only in Twentyten’ is closed to new replies.