Hello,
I have 2 different post types. Each one has a specific taxonomy. And both have another common taxonomy.
I would need the common taxonomy archive pages to display :
1- a radio button allowing to choose which one of the post types the user wants ;
2- a checkboxes list of the selected CPT taxonomy's terms.
Displaying all checkboxes is easy, but I can't find how to add a custom filter with Blocks.
Thank you.
Hi Roman,
Thanks for asking! I'd be happy to help.
As a default functionality, WordPress Archives only include the information about the posts related to the current archive page. That is why the search filter options for the taxonomy terms also change based on the archive page being viewed.
The Blocks editor is designed to work for most common and default requirements, but in case of a specific requirement like this, you'll need to switch back to the classic editor.
To achieve what you're planning, you can use the following workaround:
1. You can create a post view ( and not WordPress Archive view ) with the desired search filters and place it on a specific page and then redirect all archive pages to that one page.
OR
2. You can create a post view ( and not WordPress Archive view ) with the desired search filters and then place its shortcode inside a WordPress Archive view created using the classic editor.
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
Thank you. I think option 2 is the best workaround in my case.