Thanks for your patience while I attended to life’s many challenges. I am happy to report that I have found a solution for your application that does not require any changes to the MLA vesion you already have. Here are your shortcodes with a few modifications. I have used the “enclosing shortcode syntax” to spread the parameters across multiple lines for readability.
Also, these shortcodes use the “MLA UI Elements Example” plugin I described in your earlier “SEARCH FORM GALLERY” topic.
[mla_term_list]
use_filters=true
taxonomy=attachment_category post_mime_type=image
mla_output=checklist mla_control_name=att_category[]
mla_option_value="{+slug+}"
show_count=true pad_counts=false
[/mla_term_list]
[mla_gallery]
add_filters_to=any default_empty_gallery=true post_mime_type=image
tax_operator=AND tax_include_children=false
posts_per_page=100 mla_nolink_text="Seleziona una o più categorie per filtrare le immagini." mla_alt_shortcode=marini
[/mla_gallery]
In the [mla_term_list]
shortcode the use_filters=true
parameter activates the example plugin to make the term selection(s) sticky. The mla_control_name=att_category[]
parameter supports multi-term selection. This shortcode must be inside an HTML form with some sort of a Submit/Search button to work.
In the [mla_gallery]
shortcode the add_filters_to=any default_empty_gallery=true
parameters apply the selected term(s) and show an empty gallery until one or more terms are selected. The tax_operator=AND tax_include_children=false
parameters ensure that the gallery displays images assigned to ALL the selected terms. You would use tax_operator=IN
to display images assigned to ANY one or more of the selected terms.
These shortcodes should give you the results you want. I am marking this topic resolved, but please update it if you have problems or further questions regarding the above solution. Thanks again for your patience and for your interest in the plugin.