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?
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.
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!
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/
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!
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/