Title: mla_gallery basic shortcode doesn&#039;t work
Last modified: August 30, 2016

---

# mla_gallery basic shortcode doesn't work

 *  Resolved [Nirar](https://wordpress.org/support/users/nirar/)
 * (@nirar)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/mla_gallery-basic-shortcode-doesnt-work/)
 * 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/](https://wordpress.org/plugins/media-library-assistant/)

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

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/mla_gallery-basic-shortcode-doesnt-work/#post-6268775)
 * 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](https://wordpress.org/support/users/nirar/)
 * (@nirar)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/mla_gallery-basic-shortcode-doesnt-work/#post-6268934)
 * 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](https://wordpress.org/plugins/tiled-gallery-carousel-without-jetpack/)
   plugin because I want to use the “Tiled Mosaic” gallery type.
 * I followed your instructions in [this thread](https://wordpress.org/support/topic/jetpack-gallery-styles-integration?replies=4)
   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](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/mla_gallery-basic-shortcode-doesnt-work/#post-6268938)
 * 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](https://wordpress.org/support/topic/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](https://wordpress.org/support/users/nirar/)
 * (@nirar)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/mla_gallery-basic-shortcode-doesnt-work/#post-6268963)
 * Thanks again David 🙂
 * I am having some issues with “type=rectangular” parameter – I’ll elaborate on
   the [other thread](https://wordpress.org/support/topic/fixed-height-and-auto-width-on-images-displayed-via-mla_gallery?replies=17)
   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.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

## Tags

 * [shortcode problem](https://wordpress.org/support/topic-tag/shortcode-problem/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nirar](https://wordpress.org/support/users/nirar/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/mla_gallery-basic-shortcode-doesnt-work/#post-6268963)
 * Status: resolved