Title: Issue with Excluding Categories
Last modified: November 22, 2019

---

# Issue with Excluding Categories

 *  Resolved [kevincp560](https://wordpress.org/support/users/kevincp560/)
 * (@kevincp560)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/issue-with-excluding-categories/)
 * Hello,
 * I hope you are having a nice day. I am currently experiencing an issue with Ultimate-
   FAQ. We are currently updating our website to add FAQs to our service pages. 
   While doing this, I am excluding categories on our general FAQ page. Whenever
   I exclude more than 4 categories in the FAQ block, it messes up the structure
   of our page. How can this be fixed?
 * Also, whenever I include more than one category, none of the FAQs appear on the
   page. I am thinking that there is some internal issue with the plugin, but I 
   am not sure. Any help would be greatly appreciated.
 * Thank you.
    -  This topic was modified 6 years, 6 months ago by [kevincp560](https://wordpress.org/support/users/kevincp560/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fissue-with-excluding-categories%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * (@rustaurius)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/issue-with-excluding-categories/#post-12165552)
 * Hi rgallagher30,
 * Hope you’re having a nice day as well 🙂 How are you editing your FAQs, manually,
   using a page builder, etc. ?
 * It appears that either an extra opening or closing <div> may be present in the
   code. This could be because you’ve added an extra <div> HTML tag in one of your
   FAQs, probably unintentionally.
 *  [William Schroeder](https://wordpress.org/support/users/justmind/)
 * (@justmind)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/issue-with-excluding-categories/#post-12170365)
 * Kevin and I work together. The FAQ page is being built in the block editor in
   Gutenberg. The other services pages are built with Avia Layout Builder and we
   use shortcode to implement the FAQ.
 * This is the example of the first problem:
 * What it should look like: [https://justmind.org/faq/](https://justmind.org/faq/)
   
   What happens after adding more than 2 exclude categories: [http://williamasch.staging.wpengine.com/faq/](http://williamasch.staging.wpengine.com/faq/)
 * The plugin is also not allowing us to list multiple include categories without
   making everything disappear.
    -  This reply was modified 6 years, 6 months ago by [William Schroeder](https://wordpress.org/support/users/justmind/).
 *  Plugin Author [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * (@rustaurius)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/issue-with-excluding-categories/#post-12174518)
 * Hi again,
 * If you enter in the standard [ultimate-faqs] shortcode on [http://williamasch.staging.wpengine.com/faq/](http://williamasch.staging.wpengine.com/faq/)(
   not with Gutenberg blocks, rather just with the plain [ultimate-faqs] text pasted
   in), does the page display normally? If so, then, can you please try adding the
   exclude_category attribute to the shortcode? I just tested and it works fine 
   with one, two or three different categories excluded. For example:
 * [ultimate-faqs exclude_category=”cars,bikes,trains”]
 *  [William Schroeder](https://wordpress.org/support/users/justmind/)
 * (@justmind)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/issue-with-excluding-categories/#post-12177064)
 * No. It does it either way. I also talked with our theme developer and they said
   the FAQ block is placed outside container and that is breaking the layout.
 *  Plugin Author [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * (@rustaurius)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/issue-with-excluding-categories/#post-12178744)
 * Hi again,
 * The div structure of the FAQs is correct. The FAQ block showing outside of the
   div it’s supposed to is because something is closing the div prematurely. That’s
   why I was asking you to check the FAQs to make sure there is no HTML directly
   in an FAQ that could be causing the issue.
 * If you’re certain you’ve checked all FAQs for any potential stray HTML, then 
   you’ll need to find out what else in your WordPress install is causing the conflict.
   As a test, you could deactivate all your plugins, except for UFAQ, and see if
   that makes a difference. From there, you could reactivate your plugins, one at
   a time, until the issue reoccurs.
 * Another test would be to temporarily switch to the default Twenty Nineteen WordPress
   theme and see if that makes a difference.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Issue with Excluding Categories’ 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/issue-with-excluding-categories/#post-12178744)
 * Status: resolved