Showing posts as child items of categories

You already know this plugin can display any taxonomy as an accordion. The good news is that you can now display a category accordion with its posts as child items.

For example, you might have a WooCommerce product categories displaying as an accordion. It has sub-categories. And you want to show products as child items of the categories.

For this, go to your site admin and navigate to the accordion shortcode generator. Add a new shortcode if you do not have any. Select the data source as a category. And set “product_cat” as taxonomy.

Scroll to the bottom of the page, and enable the “Show Posts” option. It will bring post settings. Set the post type here. In this case, it will be WC products. And adjust the other options as you need. And save the settings. And its ready, check the final output.

Was this article helpful to you? No Yes

How can we help?