Skip Navigation

[Resolved] Add a custom filter that will impact other filters in an archive view

This support ticket is created 4 years, 9 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by romanB-3 4 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1573855

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.

#1575175

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

#1575445

Thank you. I think option 2 is the best workaround in my case.