WordPress.org

Ready to get started?Download WordPress

Forums

Hide Category ( list_cats_exclusions ) (3 posts)

  1. Lohn
    Member
    Posted 7 years ago #

    I hope someone could help me because i'm going mad with this problem...

    I want to create a "hidden category" with also "child category"; this category (and also its child) must not be visibile everywhere in my wordpress site.

    I simply want to add some posts to this category and to be able to show all the post who belongs to it in some specific pages.

    How can i do this?
    I tried by making myself a Plugin in this way... but it doesn't work... any hint?

    function filter_category($exclusions) {
    	$exclusions = " AND category_parent != 5 ";
    	return $exclusions;
    }
    
    add_filter('list_cats_exclusions', 'filter_category');

    THX in advance for any help!

  2. Lohn
    Member
    Posted 7 years ago #

    Soeey for the bumping... but noone can help me?

  3. dmob
    Member
    Posted 6 years ago #

    Hello Lohn,
    You can check this link:

    http://codex.wordpress.org/Good_Navigation_Links

    Regards,
    dmob

Topic Closed

This topic has been closed to new replies.

About this Topic