Combined search | WordPress.org

[ad_1]

Good to hear from you again, and thanks for the question. You can use the parameters described in the “Keyword(s) Search” section of the Settings/Media Library Assistant Documentation tab to get a good solution. Here is an adaptation of the “Search Form and Gallery” example in the Documentation to get you started:

<form id="mla-search-form" action="." method="post">
<input id="mla-search-box" name="search-string" type="text" value="" />&nbsp;<input id="submit" name="submit" type="submit" value="Search" />
</form>

[mla_gallery s="{+template:({+request:search-string+}|a-bad-term)+}" mla_nolink_text="Enter a search value above to display gallery." mla_search_fields="alt-text,title,terms" mla_terms_taxonomies=attachment_tag mla_search_connector=OR]

If your terms have multiple words separated by spaces, you can match on multi-word phrases in a variety of ways. These are described in detail, with examples, in the “Entering Words and Phrases” portion of the “Terms Search – filtering on taxonomy term names” Documentation section. You can also use the whole_word=true, sentence=true and exact=true parameters to change the matching logic used in the [mla_gallery] shortcode.

I am marking this topic resolved, but please update it if you have problems or further questions regarding the above suggestions. Thanks for your continued interest in the plugin.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer