Skip Navigation

[Resolved] Display Taxonomy in a view

This support ticket is created 5 years, 6 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
- 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 12 replies, has 2 voices.

Last updated by Shane 5 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1271825
custom-search.png
page.png

Tell us what you are trying to do?

I have a page which shows a view with product category info (title, image, button with link), filtered by a product category term field 'menu group' (1, 2, 3, 4, 5), which displays what I want (see image: page.png)

Products also has a custom taxonomy 'Artikelart'.

I expected
[wpv-post-taxonomy type=„artikelart“ separator=", " format=„name“ order="asc"]
to show the matching values ‚Artikelart.‘

I want 'Artikelarten' to be shown for each product category in this view, like in a Custom Search matching 'Artikelarten' will be displayed automatically (see screenshot: custom-search').

Can you help?

What is the link to your site?
hidden link

#1271925

Shane
Supporter

Languages: English (English )

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

Hi Thomas,

Thank you for getting in touch.

I'm having a little difficulties understanding exactly you want to achieve.

Could you provide a little more clarity for me ?

Thanks,
Shane

#1272601
template-for-this-view.png
content-selection.png

Hi Shane

As you can see in the image 'Custom Search', taxonomy 'Artikelart' is a filter for the chosen product category and shows 'Artikelarten' matching the product category.

In another view (see image 'Page') I want show the relevant titles from taxonomy 'Artikelart' to be listed comma-separated for each product category.

I use a template for this view (see screenshots).

I expected
[wpv-post-taxonomy type=„artikelart“ separator=", " format=„name“ order="asc"]
to show the matching values ‚Artikelart', but this did not work.

How can I show the relevant titles from taxonomy 'Artikelart' in this view?

I hope you understand better now.
Thank you.

#1272731

Shane
Supporter

Languages: English (English )

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

Hi Thomas,

Thank you the screenshots. I'm assuming that the [wpv-post-taxonomy] you want to display the taxonomy.

However since you are using a taxonomy view then this shortcode isn't actually the correct one to use.

You will need to add this one here.
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-153462

For the other fields that you can use in this view you should click the Fields and Views button.

Thanks,
Shane

#1272803
nav-group1-loop.png
template-nav-group-test.png

Thank you, Shane

I try to more clear.
I want to show values from 2 taxonomies. I tried it now with 2 views.

A taxonomy view (NavGroup1-Test) filters for product categories by term-field ‚menu-group1‘. The result is on image 'page'.

Another taxonomy view (NavGroup1-Loop) filters for ‚Artikelarten‘ with [wpv-taxonomy-title] in the loop .
(image: nav-group1-loop)

I call the view ‚NavGroup1-Loop‘ inside the view ‚NavGroup1-Test‘ (image: template-nav-group-test).

Now, by setting the filter in taxonomy view for Artikelart ‚NavGroup1-Loop‘ to
‚Value set by parent Taxonomy View‘ I get ‚No items found‚ - with other settings it displays either all values or nothing at all.

I would like to try:
Value set by the current post in the loop

but I can’t find this filter-setting in my taxonomy-view.

I hope you understand better now, what I want to achieve.

Kind regards,
Thomas

#1272827

Shane
Supporter

Languages: English (English )

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

Hi Thomas,

Is your second view related to the first view ? Meaning are the taxonomies related ?

Could you provide access so that I can get a better look from your end as well ?

Thanks,
Shane

#1272983

Shane
Supporter

Languages: English (English )

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

Hi Thomas,

The problem is that you want to use a parent taxonomy view to filter the child taxonomy view but 'product categories' and 'artikelarten' are not related at all.

So you won't be able to filter the artikelarten view by anthing from the product category.

Thanks,
Shane

#1273281

Thanks Shane, for looking into it.

Is there a way to relate the 2 taxonomies?
Is there another way to achieve my goal?

Kind regards,
Thomas

#1273589

Shane
Supporter

Languages: English (English )

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

Hi Thomas,

The only way to relate 2 taxonomies together is by relating the terms itself.

From what I see you want to filter your Products by a particular taxonomy and then on those Products being displayed you want to display the terms from the other taxonomy correct?

Please let me know.
Thanks,
Shane

#1274435

Hi Shane

I want to filter a taxonomy (product-categories) - and also display terms of the other taxonomy (artikelart) from the same post-type (products).

#1274631

Shane
Supporter

Languages: English (English )

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

Hi Thomas,

What you will need to probably do is use 3 Views.

The first view product-categories which is filtered already. The second view is the Product view which you can add a filter to so that it filters by the Parent taxonomy view.

Finally you add the 3rd view artikelart , this is added to the post view and on that artikelart view you will add a filter to it so that it only list the terms of the Products that were filtered in the parent view.

Its like you're nesting 3 views.

Please let me know if this is clear because this is perhaps the only way to do it with your current setup because we are using the Taxonomy's relationship to the posts to list out the artikelart terms.

Thanks,
Shane

#1274647

Hi Shane

Thank you for your advise.
I will try nesting the 3 views. Will report back.

Kind regards,
Thomas

#1274747

Shane
Supporter

Languages: English (English )

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

Hi Thomas,

Great please keep me posted.

Thanks,
Shane