Skip Navigation

[Résolu] Single search form for multiple views on a page

This support ticket is created Il y a 7 années et 1 mois. 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.

Marqué : 

This topic contains 4 réponses, has 2 voix.

Last updated by bronwenS Il y a 7 années et 1 mois.

Assigned support staff: Minesh.

Auteur
Publications
#303030

I am trying to have a single search form that will affect multiple views on that page. This can't be achieved with nested taxonomy/post views.

Is it possible to have a single search form at the top of the page, which when the user selects a category (taxonomy filter), multiple other views on the same page are filtered to just show posts in that category?

#303135

Minesh
Supporter

Languages: Anglais (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello and thank you for contacting Toolset support.

Can I have additional information that as you have added multiple views on single page, are they attached to same content type [CPT] or each view is associated with different CPT.

#303349

No the views each have different custom post types within them.

#303442

Minesh
Supporter

Languages: Anglais (English )

Timezone: Asia/Kolkata (GMT+05:30)

You can choose the taxonomy filter to come from a URL argument (value set by URL parameter) and set this filter for all of your views.

Please refer to the following link:
=> https://toolset.com/documentation/user-guides/passing-arguments-to-views/
[ Refer section: "Filters by taxonomies"]

#305631

Thanks, works well.