WordPress.org

Ready to get started?Download WordPress

Forums

Hidden categories? (2 posts)

  1. ultrotter
    Member
    Posted 8 years ago #

    Hi!

    I was just wondering... How about a feature to "hide" categories in the blog? It should be easy to implement and could be useful to be able for posters to "tag" posts to be put in some category (for example to be syndicated) without the need for that category to appear publically in the blog itself... :)

    Thanks!

  2. nearlythere
    Member
    Posted 8 years ago #

    functionality exists for this and is called 'exclude' categories (rather than 'hide').

    otherwise, if you want a site-wide function, there's plugins for this:
    http://www.gudlyf.com/archives/2005/03/08/wordpress-plugin-category-visibility/

    in case anyone else comes across this post:

    using the term 'exclude' should help search the forum archives and the codex. i like to use google to search using the site: option, like this:

    http://www.google.com/search?q=site:codex.wordpress.org+exclude+category

    NB:
    i would have added a how-to, but i don't know from which tag you want to exlucde a category. depending on which tag you are modifying, the exclude code is different. check each tag in the codex.

    for example: there are even two ways of listing categories:

    <?php wp_list_cats(); ?>
    <?php list_cats(); ?>

    http://codex.wordpress.org/Template_Tags/list_cats
    http://codex.wordpress.org/Template_Tags/wp_list_cats

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.