Support » Plugin: Media Library Assistant » Gallery based on Date

  • Resolved gekow

    (@gekow)


    Hello and a happy and bright new year.
    first of all, I use MLA for aages to populate my foto site on an easy way and I love it. But I know that I use only 5% of it’s possibilities.
    I swear I searched for it and I guess it is really simple, I want to create galleries based on date e.g. all images of 2019 and I can’t figure it by myself.
    I don’t understand how to use queries for that.
    Sorry

    Please go ahead with this wonderful plugin
    Georg

    Oh and another simple one.. how Do I combine two parameters like category X and attachment_tag y or, even better, year=y?

    • This topic was modified 3 months, 2 weeks ago by .
    • This topic was modified 3 months, 2 weeks ago by .

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

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

    (@dglingren)

    Thanks for your positive feedback and for your question.

    You can filter an [mla_gallery] display using the WordPress “Date Query” features as outlined in the ‘Date and Time Parameters, the “date query” ‘ section of the Settings/Media Library Assistant Documentation tab. Follow the links from there to the WordPress Codex documentation to see all the options for filtering by date.

    For your example you can code something like:

    [mla_gallery attachment_category=abc date_query="array( array( 'year' => '2015' ) )"]
    

    You can adjust the category and year values as needed. Combining two taxonomy filters is quite simple:

    [mla_gallery attachment_category='some-category' attachment_tag="a-tag" tax_relation=OR]
    

    The above example will show all items assigned to either term. The default tax_relation is “AND”, so if you omit tax_relation=OR items must be assigned to both of the specified terms.

    I hope that gets you started on the queries you need. 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.

    Thread Starter gekow

    (@gekow)

    Ahhhh thank you very much. I understood, that I need to use query, but I didn’t understand how to put that into the MLA call. The Tax_relation code I dnd’t find at all 🙂

    Thanks again for your wonderful plugin and the awesome support.

    Georg

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