WordPress.org

Ready to get started?Download WordPress

Forums

How do I exclude a post or category from home page (8 posts)

  1. mgm_03
    Member
    Posted 8 years ago #

    I'm looking for a tip on how to prevent a single post or the entire category (there's only one post in it) from appearing on the home page.

  2. Kafkaesqui

    Posted 8 years ago #

    There are a couple of plugins for this.

    Unfortunately the site they reside on appears dead at the moment. Here's the links to them (for when things are back in order):

    http://dev.wp-plugins.org/file/front-page-cats/trunk/
    http://dev.wp-plugins.org/browser/elegant-category-visibility/trunk/

  3. patelvijay
    Member
    Posted 8 years ago #

    thanks kaf!

  4. mgm_03
    Member
    Posted 8 years ago #

    This isn't exactly what I need but is an alternative solution: http://www.ilfilosofo.com/blog/home-page-control/

  5. mgm_03
    Member
    Posted 8 years ago #

    Ok. I found a solution after some effort looking. The plugin that I know works for WP 2.0 is at ......:

    http://ryowebsite.com/?p=46

    I needed this because I included a Flash Photo Gallery (SlideShowPro) that could only be inserted into a POST. Not wanting the gallery to appear on the home page, I needed a solution. This plugin worked without a hitch. Here's the site I used it on : http://bearcabinrecording.com

  6. adkbasecamp
    Member
    Posted 8 years ago #

    I'm using the Semiologic Opt-in front page plugin. It includes any post with the category "Blog". I have that checked as default. Now everything is automatically appears unless I 'opt-out' by unchecking the blog category.

    Now I just want to hide that category from the post meta data.

    I need to modify this to exclude one category:

    get_the_category_list(', ')

    I think I need to insert exclude='cat ID #' somewhere. Anyone know how to do this? Thanks.

  7. EthanNeuen
    Member
    Posted 7 years ago #

    I think this is what you have been looking for.
    http://ryowebsite.com/wp-plugins/category-visibility/

  8. Jardry
    Member
    Posted 7 years ago #

    I am having problems modifying the code for the Category Visability plugin so that it displays subcategories correctly. I used the following snippet, but keep getting an error.

    This is the snippet:

    Have found a fix for my problem, a bit clunky perhaps, but it works for 2 levels of subcategories, At line 322, change the part of the for each statement as follows:

    foreach ($linklist as $link) {
    if(preg_match("/class.children/”, $link)) {
    $children = 1;
    $newlist .= $link;
    } elseif(preg_match(”/class.children/”, $link) && ($children=1)) {
    $children = 2;
    $newlist .= $link;
    } elseif(preg_match(”/</ul>/”, $link) && ($children=1)) {
    $children = 0;
    $newlist .= $link;
    } elseif(preg_match(”/</ul>/”, $link) && ($children=2)) {
    $children = 1;
    $newlist .= $link;
    } else { ….. (ETC)

    This is the error:
    Parse error: parse error, unexpected T_CLASS in D:\Domains\go.id.au\wwwroot\wp-content\plugins\category_vis-rh.php on line 339

    Line 339 is

    } elseif(preg_match(”/class.children/”, $link) && ($children=1)) {

    Any suggestions as to what I need to edit to make this work?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.