Skip Navigation

[Resolved] Filter a view by tags

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.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 3 months, 1 week ago.

Author
Posts
#2681439

Can you tell me how I can filter a view by tags? For example, let's suppose I have tags for "city 1" and "city 2", but only want to show posts for city 1.

#2681445

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

Do you mean you want to have a front-end filter for tags, so users can select a tag to filter by?

That would work just like any other search filter, but you would specify tags as what is being filtered by. See https://toolset.com/course-lesson/creating-a-custom-search/

Or do you mean a "hard-coded" filter, where you want to display a list of posts somewhere that are tagged "Chicago", for example? No front-end filter.

That means adding a Query Filter to the View to display the posts.

See this page, and the section relating to taxonomy filters: https://toolset.com/course-lesson/filtering-custom-lists-of-posts/

#2683570

Thanks!

johnH-33 confirmed that the issue was resolved on 2024-02-15 09:02:22.
This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.