Skip Navigation

[Resolved] Create a nested list of taxonomy terms for a CPT

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Minesh 4 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1799077

I am building a directory listings site and have created Businesses as a CPT and Business Categories as a nested Taxonomy for Businesses. I'd like to create a nested list of Business Categories in the right sidebar of the content template for Businesses. The Block Editor widget for Categories only shows the top level, even if I have selected "Show Hierarchy"

Documentation - I have researched this but keep finding Views references when I am building this site with Toolset Blocks. I know I can do this with the Views plugin, but can't install alongside Blocks.

Examples Site - this is the site I am trying to replicate using Toolset instead of the Directory Theme they have currently.
hidden link

Here is the link to my content template so far with a manually created list at the top (my fallback if a solution can't be found), then the Categories Widget further down (not showing hierarchy despite the "Show Hierarchy" toggle being switched on.
hidden link

Thanks in advance for your assistance.

Duncan

#1799105

Further to this - I've managed to get the result I wanted by:
- deactivating Toolset Blocks
- activating Toolset Views
- creating a view for Subcategory Listing
- adding that view as a nested loop for Category Listings
- copying the shortcode for the Category Listings (parent) view and pasting into my Content Template for businesses
- deactivating Views
- reactivating Blocks

Is there an easier way to do this, or to have Blocks and Views active at the same time?

#1799863

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Currently Toolset Blocks do not support taxonomy views. I would like to clarify that Toolset Blocks and Views plugin are 1:1 copy of each other. There is no difference excluding that you can build taxonomy view using the legacy view as Toolset Blocks do not offer the feature that should allow you to build taxonomy view.

At a time - you should either install and activate the Toolset Blocks or Views plugin. You can find a setting to which allow you to select the Editing mode from:
Toolset => Settings => General Tab => Editing Experience section and select the option "Show both the legacy and Blocks interface and let me choose which to use for each item I build". Once you activate this option - this will allow you to build views in both block and using legacy views.

Please check the following screenshot:
=> https://toolset.com/wp-content/uploads/2019/12/toolset-settings-both-workflows.png

So, you will not require to switch plugins from Blocks to Views or Views to Blocks.