Thanks for your efforts to understand and apply the MLA term search features. The animal vegetable example illustrates a specific feature for multi-taxonomy checklists and takes some effort to understand.
A better place to start is the “Search Form and Gallery” example in the “MLA Gallery Examples” section of the Settings/Media Library Assistant Documentation tab. You can add a couple of parameters to the example to get the results you want. Here’s one way to adapt the example to your needs:
<h3>Keyword Search</h3>
<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>
<h3>Results</h3>
[mla_gallery s="{+template:({+request:search-string+}|a-bad-term)+}" mla_search_fields=terms mla_terms_taxonomies=envira-tag mla_nolink_text="Enter a search value above to display gallery."]
The s=
(keyword search) and mla_search_fields=terms
parameters replace the mla_terms_phrases
parameter you used. In fact, you can retain the mla_terms_phrases
parameter to use the “Taxonomy term keyword(s) search” if you like. The latter is more powerful but somewhat more complex. You can experiment with both features and see which better fits your application.
If you go on to paginate your gallery as shown in the example, remember to add the mla_search_fields=terms
parameter to the pagination controls as well as the gallery display shortcode.
The “MLA Term List Examples” section can show you how to match a term checklist with a gallery display.
If you want to combine multiple search features on a single page you can start with this earlier support topic:
Shortcode Display Help
As you will see there, it can be done but requires more work. You can ignore all the “Development Version” references; everything for that topic is in the current MLA version.
I hope that gets you started on a solution that meets your needs. I am marking this topic resolved, but please update it if you have any problems or further questions regarding the above suggestions. Thanks for your interest in the plugin.