Support » Plugin: Ultimate FAQ - WordPress Q&A Plugin » Displaying all faqs under parent category

  • For some reason I get this;

    SubCat 1
    – faq
    – faq
    – faq

    SubCat 2
    – faq
    – faq
    – faq

    Parent Cat
    – faq
    – faq
    – faq
    – faq
    – faq
    – faq

    Is there anyway to avoid this when displaying Parent cat on a page, I just want the two sub categories with the faqs to display, not the parent category at the end?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I could use CSS to hide the last category group, but it’s not always the last category group, sometimes it’s the first, and of course this could be reordered.

    I’d really rather not have to list each subcategory, as this adds way too much admin and would require me to restyle everything.

    Has anyone edited this plugin to not display the parent category unless it has FAQs directly applied to it?

    I did try;

    [ultimate-faqs include_category='child1, child2, child3']

    But this will only display child1

    Instead I had to do this;

    [ultimate-faqs include_category='child1']
    [ultimate-faqs include_category='child2']
    [ultimate-faqs include_category='child3']

    This would be so much simpler if you could simply do;

    [ultimate-faqs include_category='parent']

    • This reply was modified 1 month, 3 weeks ago by unknownmale.
    Plugin Author Rustaurius

    (@rustaurius)

    Hello unknownmale,

    Thank you for letting us know how you solved this issue.

    I believe you should be able to do:

    [ultimate-faqs include_category='child1,child2,child3']

    if you remove the spaces after the commas. The include_category attribute is set up to accept multiple categories, so hopefully there will be no reason to include the shortcode three times on the same page.

    Unfortunately, at the moment, you can only group/display your FAQs by category; there is no way to display them in a tree form (category > sub-category) at the moment. We use a custom post type to create the FAQs. And we use the hierarchical type of post type in order to be able to have the category functionality. By default, for hierarchical post types, WordPress allows you to create as many levels of sub-categories as you want. We did not want to code in a block on this because we had numerous people express to us that they would still like to keep this available if only for organizing their FAQs in the admin.

    Thank you for the reply,

    Perhaps a work around would be to give each level of hierarchy in the structure a unique class, or ID with with the cat_ID, this way users could remove unwanted instances safely with CSS?

    Plugin Author Rustaurius

    (@rustaurius)

    Hi @unknownmale,

    That’s a great suggestion. We’ll look to implement it in a future update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.