WordPress.org

Ready to get started?Download WordPress

Forums

How to exclude one category completely from the site. (9 posts)

  1. aBieker
    Member
    Posted 8 years ago #

    Okay... so I've read in several posts on here that you can't get rid of the default category in the admin panel. I'm sick of having to uncheck that category when I want to post and I have several other authors on my blog who often forget to do the same.

    Therefore,
    I'm trying to create an 'exclusion' to make wordpress ignore that category at all times (when wp_list_cats, and list_cats are called as well as any other time that this new "invisible" category might show up). Unfortunately, it seems like there are calls for category listings pretty often. Is there any simple way to do this, or do I have to go and edit every individual call for category listings?

  2. You will have to alter your theme's Main Template slightly. See: http://codex.wordpress.org/The_Loop#Exclude_Posts_From_Some_Category

  3. aBieker
    Member
    Posted 8 years ago #

    thanks maxmanx... that gets rid of the posts when the Loop is called on my pages, but I also need to keep the category from being displayed on my admin screen as well as anywhere else that lists categories... will this accomplish that? If not, is there a simple place where I can modify the list_cats call or something like that, rather than having to edit every individual call to list_cats?

  4. aBieker
    Member
    Posted 8 years ago #

    thanks maxmanx... that gets rid of the posts when the Loop is called on my pages, but I also need to keep the category from being displayed on my admin screen as well as anywhere else that lists categories... will this accomplish that? If not, is there a simple place where I can modify the list_cats call or something like that, rather than having to edit every individual call to list_cats?

  5. aBieker
    Member
    Posted 8 years ago #

    Also...
    Will this exclude posts that are double-listed in the new "invisible" category and in some other category? That would kinda defeat the purpose, if true.

  6. aBieker
    Member
    Posted 8 years ago #

    Sorry... this was a double-post.

  7. geetarista
    Member
    Posted 8 years ago #

    Check out these two plugins and see if they help you out:

    http://willwyatt.com/blog/?page_id=19
    http://www.gudlyf.com/archives/2005/03/08/wordpress-plugin-category-visibility/

    Oh, and btw, you don't have to double post every time!

  8. aBieker
    Member
    Posted 8 years ago #

    I get errors with both of those plugins, geetaista. I think I've found a simpler way for myself by reducing the calls for categories on my page and then creating an exclusion in each call. I do need to know, however, which admin file contains the call to 'list_cats' in the "write" section of the admin screen. I'll look for it myself and report back if I find it.

  9. aBieker
    Member
    Posted 8 years ago #

    apparently, there is no "list_cats" call in the admin panel. Somehow, the categories get listed by some other function, I guess. I'm looking far and wide for a place where i can remove the default category from the "write" page so that despite everything being IN that category, you never see it. If anyone has an answer, please let me know.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.