• Resolved lucky8919

    (@lucky8919)


    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 5 years, 10 months ago by lucky8919.
Viewing 1 replies (of 1 total)
  • 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.