• Resolved Harm10

    (@harm10)


    Hi! When I code this:

    <code>
    [mla_gallery post_mime_type='image' date_query="array(array('column' => 'post_date', 'year' => 2012))" post_parent=all orderby=ID order=desc posts_per_page=3 mla_debug=false mla_caption="{+post_id+}/{+post_date+}" ]
    </code>
    <code>
    [mla_gallery post_mime_type='image' date_query="array(array('column' => 'post_date', 'year' => 2012)) post_parent=all orderby=ID order=desc posts_per_page=3 mla_debug=false mla_caption="{+post_id+}/{+post_date+}" mla_output="paginate_links,prev_next"]
    </code>

    The pagination part throws an error:
    ERROR: Invalid mla_gallery tax_query = 'date_query="array(array(\'column\''

    Why does this happen?

    https://wordpress.org/plugins/media-library-assistant/

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

    (@dglingren)

    Thanks for posting the full source text for both of the [mla_gallery] shortcodes. Seeing them side-by-side is very helpful.

    It looks like you’ve already found the annoying WordPress bug that requires the <code></code> tags.

    It also looks like your second shortcode is missing the trailing double-quote mark to terminate the date_query parameter. I think if you fix that your shortcodes will be fine. You can also remove the mla_caption parameter from the pagination shortcode; it’s not used because there are no gallery items to display, just the pagination controls.

    I am marking this topic resolved, but please update it if the suggested fix doesn’t work.

    Thread Starter Harm10

    (@harm10)

    I should have seen that myself. Especially when I look at the code block above……………… 🙁

    Anyway it works now! Thanks for your fast response. I continue experimenting…… 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Pagination throwing tax_query error while only user date_query?’ is closed to new replies.