Support » Fixing WordPress » Exclude Categories from main blog

  • Resolved honeybeemanor

    (@honeybeemanor)


    I’ve installed wordpress on my blog (http://honeybeemanor.com), and I would like to blog about my dreams, BUT I don’t want it to be displayed on my main page. I want the average user to read my regular blogs and then click the dream category to the left if they wish to.

    I searched the wordpress.com forums and found this — http://en.forums.wordpress.com/topic/excluding-categories#post-422632 — but it was never resolved. I asked there, and they directed me here to .org 🙂 Can I present more info if that’s too confusing? Is this possible, or should I just continue an off-site blog about dreams to not have it jumbled together?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The article The Loop has an example of excluding categories and the Simply Exclude plugin will also do that.

    Moderator keesiemeijer

    (@keesiemeijer)

    moderator

    If your dream category id = 3 you can put this in front of the loop:
    <?php query_posts('cat=-3'); ?>
    look in your index.php for the start of the loop and put it in front of it. The loop starts here:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    Thank you! The top one worked like a charm!
    I’m sure the second one would have too, but it was confusing, as I am a dummy. 🙂

    Thanks again!

    Moderator keesiemeijer

    (@keesiemeijer)

    moderator

    Glad you got it working! Now, please use the dropdown at top right to mark this topic ‘Resolved’.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude Categories from main blog’ is closed to new replies.