Skip Navigation

[Resolved] How to display a custom taxonomy view with blocks?

This support ticket is created 4 years, 11 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.

Our next available supporter will start replying to tickets in about 0.02 hours from now. Thank you for your understanding.

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by stirea 4 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1442731
screenshot1.jpg
screenshot2.jpg
screenshot3.jpg

Hi,
I hope I am right when using "custom taxonomy view" to describe the situation where the "tree" of categories and subcategories is displayed (see screenshot1).

Actually this screenshot comes from hidden link and I have used a demo site to see how it is built: unfortunately it is based on layouts and not blocks.

When using layouts, the content selection process allows to select the taxonomy instead of post types (see screenshot2). When using blocks, the content selection settings on the right hand side of the screen do not allow to select any taxonomy (see screenshot3)

Then how do you build that "tree" like view with blocks?

Thanks for your help

#1442809

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stira,

Thank you for getting in touch.

To achieve this setup you will actually need to utilize 2 separate views and nest them.

One view will only list the parent categories and the second view will list the child categories. Have a look at our documentation below on how to achieve this.
https://toolset.com/documentation/user-guides/views/using-a-child-view-in-a-taxonomy-view-layout/#taxonomy-view-within-taxonomy-view

Please let me know if this helps.
Thanks,
Shane

#1442947

Hi Shane,

Thanks for the pointer. I understand I have to nest a taxonomy view inside another taxonomy view.

But how do you set up a taxonomy view using blocks? The URL you mentioned and the example I brought up apply to setting up taxonomy view using Layout.

The screenshots provided earlier show there is no way to select "Taxonomy" in the Content Selection settings when building a view with blocks. At least no way ... for me I should say 🙂

Thanks

#1443063

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stirea,

For this particular view you will need to disable the creation of views using only blocks.

What you need to do is to go to Toolset->Settings and scroll down to "Editing experience" and then select " Show both the legacy and Blocks interface and let me choose which to use for each item I build".

This should allow you to create your view by going to Toolset->Views and setup your nested views like this.

Thanks,
Shane

#1445013
taxonomyview3.jpg
taxonomyview2.jpg
taxonomyview1.jpg

Hi Shane,

Thank you, that was the info I was missing. I put it into practice and I am running into a weird thing!

I am trying to setup something similar to the screenshot "screenshot1" provided earlier and also mentioned in the URL you provided.

What I got instead is "nothing" on the frontend display.

In the backend I noticed I couln't select the parent taxomomy view, there is a blue rectangle instead (see screenshot taxonomyview1.jpg)

I think you may want to access the site admin because I doubt you could reproduce that on your test installation.

Please note I switched the theme back to the 2019 default wordpress theme and it did not make any difference.

Then I thought I did something wrong when building the taxonomy views (FYI, here is the query filter in the children taxonomy view (see screenshot taxonomyview2.jpg) that looks like the once described in the tutorial (see screenshot taxonomyview3.jpg) (to make it easier to understand because it is in French).

You may want to have a look at them:

ID for children taxonomy view: 79818
ID for parents taxonomy view: 79819

Here is the page where I build the directory:
hidden link
I wish to implement this nested taxonomy at the very bottom of that page.

Thanks for your help

#1446687

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stirea,

We are already aware of the issue where you can't add taxonomy views or user views to your page using blocks.

However to add the parent view to the page you can add the Classic editor to the page and then on the classic edit you hit the toolset button, from there just select your parent view and add it to the editor.

Our developers do however plan to add this sometime in the future but for now you will need to add it to your page like this.

Thanks,
Shane

#1446881

Hi Shane,

I have just followed your directions and it just plain works!
Thank you! This topic was a rough one!