Support » Plugin: Media Library Assistant » Eleminate tax items with 0 counts

  • Resolved ernstwg

    (@ernstwg)


    Hi David.

    I want to find images by searching for the attachment cat.

    Code

    <form id="mla-text-form" action="." method="post" class="row">
    <strong>Att. Categories</strong>
    [mla_term_list taxonomy=attachment_category mla_output=checklist mla_option_value="{+slug+}" show_count=true pad_counts=false ]
     
    <input id="text-form-submit" name="text_form_submit" type="submit" value="Search">
    </form>
     
    <h3>Gallery</h3>
    [mla_gallery attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}" columns=3 link=file size=large orderby=rand mla_style="experiment-default-basis-top" mla_markup="experiment-default-basis-back-to-post"]

    Some categories are assigned to images, so the show a count > 0, others don’t. They show count = 0. Can I eleminate them from showing up in the list?

    Cheers, Ernst-Wilhelm

    • This topic was modified 2 months, 1 week ago by ernstwg.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question. You can find the answer in the “Term List Data Selection Parameters” section of the Settings/Media Library Assistant Documentation tab. There it says:

    minimum – The minimum number of attachments that must be associated with the term for the term to be included. For example, “minimum=1” will omit “empty” terms.

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

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.