Search Within a Specific Custom Taxonomy
-
I’m trying to make a simple search form but I want results from within a specific attachment_category.
Unfortunately, it’s bringing up results from the entire library.What am I doing wrong?
Link an example: https://www.nosaintshistory.com/mla-examples/
Here is the code I’m using at the moment.
<form id="mla-search-form" action="." method="post"> <input id="mla-search-box" name="search-string" type="text" value="" /> <input id="submit" name="submit" type="submit" value="Search" /> </form> [mla_gallery s="{+template:({+request:search-string+}|a-bad-term)+}" mla_search_fields=titles mla_terms_taxonomies=attachment_category attachment_category="no-saints-cards" posts_per_page=12 mla_output="paginate_links,prev_next" mla_link_href="{+page_url+}?search-string={+request:search-string+}"] [mla_gallery s="{+template:({+request:search-string+}|a-bad-term)+}" mla_nolink_text="Enter a search value above to display gallery." posts_per_page=12]
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Search Within a Specific Custom Taxonomy’ is closed to new replies.