• Resolved ratterizzo

    (@ratterizzo)


    Hello

    Probably a dumb question but I havn’t found a solution. I’m just looking for a code snippet to show all pictures of a specific category and a specific upload date.

    Any hints?

    Thanks in advance
    Daniel

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

    (@dglingren)

    Thanks for your question. You can find information about MLA’s support of the “date query” parameter in the ‘Date and Time Parameters, the “date query”‘ section of the Settings/Media Library Assistant Documentation tab. Here is an example that works on my system:

    
    [mla_gallery attachment_category=invoices]
     date_query="array( array( 'year' => 2017,  'month' => 4, 'day' => 20 ) ) "
    [/mla_gallery]
    

    I have used the alternate “enclosing shortcode” syntax to avoid problems that WordPress has with parameters that include => characters.

    The date query feature has a lot of power, and I encourage you to study the MLA and WordPress documentation on the subject. I am marking this topic resolved, but please update it if you have problems or further questions regarding date queries in MLA. Thanks for your interest in the plugin.

    Thread Starter ratterizzo

    (@ratterizzo)

    perfect! That fits exactly my needs!!! Thanks for this hint!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show Images of a Specic Upload Date’ is closed to new replies.