Use Custom Post Type archive page for the taxonomies term archive page

by yous   Last Updated August 01, 2020 11:08 AM - source

In my wordpress theme I created a new custom post type 'books' with 2 taxonomies ('series', 'genres'). when I visit the archive of the cpt 'books' (site.com/books), I list all the books.

I added a custom frontend filter to get in this archive page books by taxonomy terms by passing an argument to the url with the name of the taxonomy and the terme (like this: site.com/books/?genres=action). Like a book browser.

But wordpress is by default creating the link for my taxonomies like this (site.com/genres/action/) and i want it to be "redirected" to the books post type with the taxonomy argument (site.com/books/?genres=action).

Is it possible to achieve that ? Thank you



Related Questions



Help with Multi Level Category Archive Page

Updated August 13, 2016 08:03 AM

Custom Post Archive is not working

Updated September 28, 2017 20:08 PM