Tell us what you are trying to do? Create a custom archive for a taxonomy that has different sections for different post types. Example. Our site has 4 post types that currently use a custom taxonomy Language. They are books, audiobooks, bundles, extras. We are using Blocksy theme. Default archive shows all four post types interspersed. We would like to show them each in seperate section by type. I know I can create a custom page to do this. Can we replace the archive so when it the taxonomy is displayed it can go to page with them seperated. Just looking for best practice. I have same issue with standard tags.
Is there any documentation that you are following?
Hello. Thank you for contacting the Toolset support.
There is no way to group posts by post type on taxonomy archive.
The possible workaround would be:
- You can create a taxonomy archive in classic mode (without using blocks)
- Create views per post type (if you have four post types then create four views) and add the query filter to filter this view with your custom taxonomy - for instance taxonomy is "Book Authors":
Taxonomy filter
Select posts with taxonomy: Book Authors the same as the current archive page
- add the four views outside the archive's loop
We can optimize this again by creating one view and we can pass the post type as view's shortcode argument but that will require custom code using view's filter hook "wpv_filter_query":