Forums

Catagories (9 posts)

  1. Rich T
    Member
    Posted 3 years ago #

    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

  2. Roy
    Member
    Posted 3 years ago #

    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(); ?>

  3. Rich T
    Member
    Posted 3 years ago #

    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

  4. Rich T
    Member
    Posted 3 years ago #

    Does anyone have any additional information on this please ?

    Thank you

    Richard

  5. padlad
    Member
    Posted 3 years ago #

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

  6. ThinkBachs
    Member
    Posted 3 years ago #

    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?

  7. ThinkBachs
    Member
    Posted 3 years ago #

    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%/

  8. ThinkBachs
    Member
    Posted 3 years ago #

    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! :)

  9. ThinkBachs
    Member
    Posted 3 years ago #

    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! :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.