• Resolved mw247

    (@mw247)


    [ultimate-faqs include_category=’xxxxxxx’] in Version 2.1.6 not working for me. Shortcode does work without using the “include_category” parameter.

    No console errors. Sorry, can’t share the dev URL because it is behind an htaccess password.

    Here is the markup on the front end from the shortcode (just no results)…

    <div class="ewd-ufaq-faq-list ewd-ufaq-page-type-infinite_scroll" id="ewd-ufaq-faq-list">
    
    	<input type="hidden" name="include_category" value="leo" id="ewd-ufaq-include-category">
    	<input type="hidden" name="exclude_category" value="" id="ewd-ufaq-exclude-category">
    	<input type="hidden" name="orderby" value="set_order" id="ewd-ufaq-orderby">
    	<input type="hidden" name="order" value="asc" id="ewd-ufaq-order">
    	<input type="hidden" name="post_count" value="4" id="ewd-ufaq-post-count">
    	<input type="hidden" name="current_url" value="/faq/event-organizer/" id="ewd-ufaq-current-url">
    	
    	<div class="ewd-ufaq-faqs">
    
    		
    	</div>
    	
    </div>
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi mw,

    The include_category attribute is definitely working in the current version, so there is either just an issue with the shortcode you are using or a conflict specific to your site. Most likely the former.

    Could you share the exact shortcode you’re using, including the value?

    Please note that the include_category attribute takes the category slug as its value (not the ID or the name, etc.).

    What happens if you use the Gutenberg block instead of the shortcode?

    Thread Starter mw247

    (@mw247)

    Could you share the exact shortcode you’re using, including the value?

    [ultimate-faqs include_category=’getting-started’ post_count=4]

    Please note that the include_category attribute takes the category slug as its value (not the ID or the name, etc.).

    Correct, I am using the slug.

    What happens if you use the Gutenberg block instead of the shortcode?

    Shortcode works if using a Gutenberg block.

    I am passing the shortcode from an Advanced Custom Field input then displaying using do_shortcode().

    Thread Starter mw247

    (@mw247)

    I think the issue might be with using a parent category. The shortcode does not work if I use a parent category as the value for include_category. It does work though if I add the comma separated child categories. Using the parent category was working until I updated from 1.9.10 to 2.1.6.

    Plugin Support jaysupport

    (@jaysupport)

    Thanks for getting back to me. Do you have the FAQs assigned to the parent category as well (i.e. did you check the box for the parent category as well)? If not, does it work if you do assign them/check the boxes?

    Thread Starter mw247

    (@mw247)

    FAQs were not assigned to the parent category, only to the child category.

    Assigning an FAQ to both the parent & child category does not work either.

    Plugin Support jaysupport

    (@jaysupport)

    I’m not sure what to tell you. It’s working in the current version of the plugin. Something must be wrong with your shortcode or how you have your FAQs assigned to categories.

    For example, have a look at our demo site here:

    https://www.etoilewebdesign.com/ultimate-faq-demo/

    You’ll see that we have the FAQs grouped by category on that main page. Oil is a subcategory (child category) of Common Maintenance. The two Oil FAQs are also assigned to the Common Maintenance parent category.

    We just created another page on our demo site, which you can view here: https://www.etoilewebdesign.com/ultimate-faq-demo/include-category/

    The shortcode used on this page is:

    [ultimate-faqs include_category="common-maintenance"]

    As you can see, all the FAQs assigned to the Common Maintenance category show on this page with this shortcode. This includes the two that are also assigned to the Oil subcategory as well as the other four that are only assigned to the parent category.

    The demo site is using the latest version of the plugin.

    The include_category attribute is functioning exactly as it should.

    Have you tried without the post_count attribute?

    If that’s not it, you’ll need to revisit how you have your categories and subcategories set up to make sure everything is assigned how it should be.

    Then you can try basic troubleshooting like creating a new category, creating a new FAQ and assigning it to the new category, creating a new page (using no page builders or anything like that) and inserting the the ultimate-faqs shortcode with the include_category attribute and the slug of your new category, to see if that works.

    • This reply was modified 4 years, 4 months ago by jaysupport.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘ultimate-faqs shortcode not working with include_category’ is closed to new replies.