• Resolved Nirar

    (@nirar)


    Hey,

    I installed the mla plugin and am trying to create a gallery using this simple shortcode: [mla_gallery attachment_category=”Grooms”]

    I created a “Grooms” attachment category and assigned it to 2 images.

    When trying to use the above-mentioned shortcode, I get this error:
    ERROR: Invalid mla_gallery tax_query = ‘attachment_category=”Grooms”‘

    When trying to use the shortcode [mla_gallery] I receive this error:
    ERROR: Invalid mla_gallery tax_query = ”

    It was working before, but after I deleted my theme and re-installed it (due to some issues) the mla shortcode stopped working.
    I tried to delete and re-install the mla plugin but the problem remains.

    Any suggestions?

    Thanks 🙂
    Nir

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

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

    (@dglingren)

    Thanks for your report and for posting the details of your error messages and shortcode text.

    You can try changing your shortcode to:

    [mla_gallery attachment_category=grooms]

    The “simple taxonomy query” uses the term slug, not the title, so “grooms” is the right value, not “Grooms”. Also, you can remove the quotes since the value has no spaces in it.

    You can also try adding <code></code> tags around your shortcode. There is a WordPress bug that sometimes converts quotes and other characters into HTML special characters, and the extra tags avoids the problem:

    <code>[mla_gallery attachment_category="grooms"]</code>

    I will leave this topic unresolved until I hear back from you regarding your experience with the above suggestions.

    Thread Starter Nirar

    (@nirar)

    Thanks for your help and quick reply David – it worked like a charm 🙂

    I have one more question (LMK if you prefer to open a new thread)…

    I am using Tiled Gallery Carousel Without Jetpack plugin because I want to use the “Tiled Mosaic” gallery type.

    I followed your instructions in this thread from 2 years to create this shortcode:
    [mla_gallery attachment_category=grooms mla_alt_shortcode=gallery type="tiled mosaic"]

    Unfortunately, the type parameter is not working and I still end up with the default “Thumbnail Grid” gallery type.
    I tried several text variations of this type (e.g. “Tiled Mosaic”, tiled-mosaic, tiledmosaic, etc..) but it didn’t help.

    Do you have any suggestions?

    Thanks again,
    Nir

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the good news regarding the taxonomy/terms parameter. Based on your response I am marking this topic resolved.

    Regarding your “TGCWJP” question, you might want to look through this earlier topic for combining MLA and TCGWJP:

    Fixed height and Auto width on images displayed via mla_gallery

    Based on the work I did for that topic, I believe the answer to your immediate question is to change your shortcode parameter to type=rectangular, which should give you the tiled-mosaic appearance you want. If that does not work, post an update to this topic and I can investigate further.

    Thanks for your interest in the plugin.

    Thread Starter Nirar

    (@nirar)

    Thanks again David 🙂

    I am having some issues with “type=rectangular” parameter – I’ll elaborate on the other thread that you suggested.

    I really appreciate your superb support and one of a kind plugin!

    Thanks mate…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘mla_gallery basic shortcode doesn't work’ is closed to new replies.