Tell us what you are trying to do?
I am trying to create archive with dynamic title that will take values from custom post type taxonomy
1 - I have a custom post type called "listing" with taxonomies "Category" & "Region"
2 - I created a view which will show all custom post types called "Listings"
3 - On archive page of CPT "Listing", I want to get dyanmically the heading as "Top 10 best "Category" in "Region" (I cannot get category and region)
4 - Then same categories and regin would be in URL as well like : hidden link
Is there any documentation that you are following?
I did directory website course but couldn't find any solution
Is there a similar example that we can see?
hidden link
hidden link
What is the link to your site?
hidden link
I imported reference site just to avoid any conflict with anything wrong I did.
So I want to implement above on reference site.
Hi,
Welcome to Toolset support.
The first thing about the taxonomies is that you can not have direct taxonomy in the URL after the domain as WordPress does not allow that and it always have a base for the URL.
So it will be like: website.com/category-base/category/region
To be able to have a hierarchal method you need to select hierarchal when creating the taxonomy in the Toolset options.
Now for the 10 best thing you need to list the listing based on the taxonomy, that is why you need a separate view for that which loads the listing with the filter of the taxonomy in question.
I think you will need to use the legacy views for that.
- Go to "Toolset > Settings > General".
- Find the "Editing experience" section.
- Check the "Show both the legacy and Blocks interface and let me choose which to use for each item I build" checkbox.
- Reload the browser page.
- Go to the newly added "Toolset > Views" menu.
- There you will be able to edit the views.
For more information:
https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/
Here are a few documents that you can check regarding the situation:
https://toolset.com/documentation/legacy-features/views-plugin/filtering-views-by-taxonomy/
https://toolset.com/documentation/legacy-features/views-plugin/displaying-taxonomies-conditionally/
https://toolset.com/documentation/legacy-features/views-plugin/displaying-term-fields-on-the-front-end/
Thanks.
As you have mentioned that i need to have hierarchal taxonomies; so i just want to highlighted both category and region are two different taxonomies, I cannot merge them.
So how to achieve below URL with first taxonomy/second taxonomy to filter out the listings accordingly. ?
website.com/category-base/category/region
Hi,
Unfortunately, WordPress does not have a native way to achieve what you want with two separate taxonomies and it will need a huge custom development to handle such a scenario as you will need to override the default permalink structure of WordPress.
Even if you manage to do that in the filtering process in Toolset, it uses the standard base URL of WordPress and you will need to change the functionality thereby code to handle the filtering.
You are welcome to ask for a developer's help for that:
https://toolset.com/contractors/
Thanks.