Skip Navigation

[Resolved] Multiple Taxonomies choose archive

This support ticket is created 3 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 2 voices.

Last updated by Luo Yang 3 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1820859

Hi,
my site is structured with multiple taxonomies

Eg:
hidden link

I would like apply a certain template on archives whose has "servizi" as taxonomy term and not the citta template but wordpress thinks the queried taxonomy is citta

How can i force wordpress to think that i'm not in citta archives but in servizi while the ?servizi exists ?

#1822101

Hello,

What is the template you mentioned above?
I assume we are talking about Toolset Content Template, if it is, you can try with filter hook "wpv_filter_force_template" to trigger a PHP function, in this PHP function:
Get the URL parameters, check the value:
hidden link

Then output different Content Template ID

More help:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_force_template

#1822149

Hi Luo,
thank you, i meant elementor template, used it because integrated in toolset

#1822151

You will need to check it with elementor support, check if there is any similar filter hook for it, we are not the best source for this

#1822179

I know, but elementor need toolset data to retrive the template, i also 'd need to show some data about the primary taxonomy in toolset + bootstrap

#1824293

For the new question:
but elementor need toolset data to retrive the template, i also 'd need to show some data about the primary taxonomy in toolset + bootstrap

Toolset Types plugin is using standard WP function register_taxonomy() to create the custom taxonomy, so you can use standard WP function to retrieve the taxonomy terms of specific post:
https://developer.wordpress.org/reference/functions/get_object_taxonomies/

#1824369

I think your answers are superficial. I'll close think ticket and 'll open another to find someone to want help me.
I want to set a query term in certain scenarios
when there are two taxonomies not to retrieve the current one

#1825541

As I mentioned above, there isn't such kind of built-in feature within Toolset plugins, it needs custom codes, and I have provided detail steps you might try, please have a look to my above answers.
We can do nothing here.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.