Ready to get started?Download WordPress


Hide Category ( list_cats_exclusions ) (3 posts)

  1. Lohn
    Posted 6 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
    Posted 6 years ago #

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

  3. dmob
    Posted 6 years ago #

    Hello Lohn,
    You can check this link:



Topic Closed

This topic has been closed to new replies.

About this Topic