NiceThemesHow to hide a specific category? – NiceThemes http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/feed/ Sun, 20 Apr 2025 16:39:16 +0000 http://bbpress.org/?v=2.5.12-6148 en-US http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/#post-4682 <![CDATA[How to hide a specific category?]]> http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/#post-4682 Thu, 09 Oct 2014 11:19:48 +0000 ThemeAvenue Hey there,

I’m really happy with the theme so far: ) I just switched from KnowHow to your theme.

I’d like to know how to hide a specific category called “hooks” (actually a sub-category) from the homepage & knowledge base page. The reason I’m trying to do this is because every articles in this sub-category are only targeted at developers (hooks for my plugin).

But, I still need to show a list of links to these articles in a specific article called “Available Hooks“. I tried using https://wordpress.org/plugins/list-category-posts/ but it does not seem to work with custom post types.

I’m using a child theme by the way. I hope you could provide me with a code snippet that I’ll use in my functions.php.

Cheers

]]>
http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/#post-4688 <![CDATA[Reply To: How to hide a specific category?]]> http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/#post-4688 Thu, 09 Oct 2014 17:32:17 +0000 Juanfra Aldasoro Hello,

Thanks for writing. Well, the knowledgebase is parsed by a function which has some nice hooks. What you can do is check if it is the home page, and then exclude the category.

Have you tried doing something like: https://gist.github.com/juanfraa/d5bcc9d3873e271259f2

Best,
Juan.

]]>
http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/#post-4710 <![CDATA[Reply To: How to hide a specific category?]]> http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/#post-4710 Mon, 13 Oct 2014 03:34:41 +0000 ThemeAvenue Works perfectly thanks! Where can I find the documentation about the available hooks for FlatBase?

How about listing the articles for a specific categories? Do I need to create a shortcode to achieve this?

]]>
http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/#post-4711 <![CDATA[Reply To: How to hide a specific category?]]> http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/#post-4711 Mon, 13 Oct 2014 03:53:30 +0000 ThemeAvenue Forget about it. I simply used the following shortcode to list the articles for my category “hooks”: `[catlist post_type=article numberposts=-1 name=hooks]`

]]>
http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/#post-4713 <![CDATA[Reply To: How to hide a specific category?]]> http://nicethemeswp.com/forums/topic/how-to-hide-a-specific-category/#post-4713 Mon, 13 Oct 2014 14:37:11 +0000 Juanfra Aldasoro Thanks for the follow up 🙂

We’re building some new things that will include documentation. I hope we can have it soon.

Best,
Juan.

]]>