Title: Exclude parent category
Last modified: January 31, 2019

---

# Exclude parent category

 *  Resolved [lucky8919](https://wordpress.org/support/users/lucky8919/)
 * (@lucky8919)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/exclude-parent-category/)
 * Hi there,
 * Is there any way that I can exclude the parent category? Or exclude a category
   itself?
 * For example if I have the following:
 * `[ultimate-faqs include_category='parent']`
 * I want all the children of that category but not the parent. For some reason 
   that will return the parent and its child, seeing redundant articles that were
   added just to the child.
 * It won’t be possible for me to include just the children categories because I’ve
   many.
 * Thanks
 * Regards
    -  This topic was modified 7 years, 4 months ago by [lucky8919](https://wordpress.org/support/users/lucky8919/).

Viewing 1 replies (of 1 total)

 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/exclude-parent-category/#post-11167776)
 * Hi lucky8919,
 * Unfortunately there’s no way to exclude the parent without excluding the children,
   but there’s a few possible workarounds:
 * 1) We know you mentioned that you have several child categories, but the safer
   way to do this would be with a `[ultimate-faqs include_category='child1, child2,
   child3']` shortcode.
 * 2) You could leave your shortcode as it is and instead try applying this CSS 
   to the Custom CSS box (in Options -> Basic):
 *     ```
       .ewd-ufaq-faqs .ufaq-faq-category:first-child {
       display: none;}
       ```
   
 * This should target and hide the first block (ie the ‘parent’ section), but we
   should stress that #1 is the much safer option.

Viewing 1 replies (of 1 total)

The topic ‘Exclude parent category’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-faqs/assets/icon-128x128.png?rev=1803957)
 * [Ultimate FAQ Accordion Plugin](https://wordpress.org/plugins/ultimate-faqs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-faqs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-faqs/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-faqs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-faqs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-faqs/reviews/)

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [children](https://wordpress.org/support/topic-tag/children/)
 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [parent](https://wordpress.org/support/topic-tag/parent/)

 * 1 reply
 * 2 participants
 * Last reply from: [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/exclude-parent-category/#post-11167776)
 * Status: resolved