• Hi all, when making new categories, is it possible to post only to that categories, and not to the main or front page ?

    Cheers

    Richard

Viewing 8 replies - 1 through 8 (of 8 total)
  • You CAN tell WP not to display certain categories on the index. That way the posts will immediately be in the archives.

    This goes into the index.php:

    <?php if (in_category('20')) continue; ?>

    (20 is of course the ID of the category that I exclude)
    Just below “the loop”:

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

    Thread Starter rich-t

    (@rich-t)

    Hi Gangleri, than you for that, seems straight forward enough, but I have about 4 different index.php files in WP, which one is it ??

    Sorry, not so good on the code stuff.

    Richard

    Thread Starter rich-t

    (@rich-t)

    Does anyone have any additional information on this please ?

    Thank you

    Richard

    Its the index.php that is in your particular chosen themes directory and it also works great!

    When I use this

    <?php if (in_category('20')) continue; ?>

    I replaced the ’20’ like this…

    <?php if (in_category('Band Members')) continue; ?>
       <?php if (in_category('Tour Dates')) continue; ?>

    With this in place under this

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

    the two categories show up on the index page but not on their category page. My goal is to keep the home page clean, and have the informational posts go directly to their respective category pages.

    Any suggestions?

    I just installed the plugin Category Overload as a possible solution but can’t seem to find it anywhere except the plugins list where it shows that it has been activated in WP 2.7

    Just thought I’d mention that I did customize the Permalinks to %category%/%postname%/

    I got it!!!! Finally found a plug in that works perfectly. It’s called SimplyExclude and I found it here:

    http://www.codehooligans.com/2008/04/27/simply-exclude-plugin/

    Download and install plugin to WP plugin folder then activate. Click on Simply Exclude in Settings and “check” the Exclude From boxes for the Category Name. Make sure you set the Visibility on the front/main page to Exclude. Save and you’re all set.

    Hope this helps someone else! 🙂

    I got it!!!! Finally found a plug in that works perfectly. It’s called SimplyExclude and I found it here:

    codehooligans dot com/2008/04/27/simply-exclude-plugin/

    Download and install plugin to WP plugin folder then activate. Click on Simply Exclude in Settings and “check” the Exclude From boxes for the Category Name. Make sure you set the Visibility on the front/main page to Exclude. Save and you’re all set.

    Hope this helps someone else! 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Catagories’ is closed to new replies.