Skip Navigation

[Resolved] Taxonomy archive with search

This support ticket is created 2 years, 3 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/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 2 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#2492081

Hi,
I'd like to create a archive for a taxonomy term, "Allotjaments" is Term, "Tipus" is taxonomy, but I'd like to have a custom search, with an input field that searches in a field. I've got a very similar idea in a page, that uses a view, which uses a custom search that uses Tipus.

My idea, duplicate this view, filter by "Tipus", "Allotjaments", and modify custom search, deleting "Tipus" select. But it doesn't work. Archive page, hidden link, shows all posts.

How can I create a custom archive page for taxonomy and use a custom search (and a map), inside?

#2492601

Hello,

It is a limitation of WordPress Taxonomy Archive page, the URL you mentioned above:
hidden link

It is term "allotjaments" archive page, it can only display posts assigned with that specific term "allotjaments", you can not display posts assigned with other terms, so it won't work as expected.

You might consider other workaround, for example:
1) Create a taxonomy view, display all term links of taxonomy "tipus"
2) Display above taxonomy in the "tipus" taxonomy WordPress Archive page.

So user can click the term link, and redirect to that term's archive page.

#2492677

Hi Luo,
what I'd like to have is a custom search, to search in custom fields, but always displaying posts assigned with that term. Can I do it in a taxonomy archive page?

Thanks!

#2492683

Yes, you can follow our document to setup the custom search form in the WordPress Archive:
https://toolset.com/course-lesson/creating-a-custom-search/

#2492691

Hi Luo,
can I use for this a Legacy View in archive page? I prefer to use Legacy View. Should I select POST or Taxonomy as Loop? If I choose Posts, how can I select just "allotjaments"'s posts, and create a custom search with other filter fields?

Thanks!

#2492705

It is not recommended to use legacy post view to replace Toolset WordPress Archive, it will conduct unexpected result.

And you can setup the Toolset WordPress Archive with legacy editor, for example:
1) Dashboard-> Toolset-> Settings:
in section "Editing experience", enable option: Show both the legacy and Blocks interface and let me choose which to use for each item I build
in section "Editor to use for WordPress Archives", enable option "Classic Editor"

2) Dashboard-> Toolset-> WordPress Archives
Create a new one and test again.

More help:
https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/