Title: duplicate
Last modified: August 11, 2017

---

# duplicate

 *  Resolved [alx359](https://wordpress.org/support/users/alx359/)
 * (@alx359)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/mla_gallery_alt_shortcode_ids/)
 * Duplicate
    -  This topic was modified 8 years, 9 months ago by [alx359](https://wordpress.org/support/users/alx359/).
    -  This topic was modified 8 years, 9 months ago by [alx359](https://wordpress.org/support/users/alx359/).

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

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/mla_gallery_alt_shortcode_ids/#post-9403185)
 * Thanks for your question.
 * The `[mla_gallery]` shortcode supports the `ids=` parameter, which accepts the
   comma-separated string you want to supply. From PHP code you can use the “mla_gallery_attributes”
   or “mla_gallery_arguments” hooks to add your parameter to an existing `[mla_gallery]`
   shortcode. Of course, you will have to find a way to modify just the shortcodes
   you want and ignore the others. I often use something like `[mla_gallery add_ids
   =true ... ]` for this, replacing the `add_ids=true` parameter with an `ids=1,2,3`
   parameter.
 * You could also define your own shortcode and then use the `do_shortcode( "[mla_gallery...`
   function with whatever parameters you need.
 * I hope that helps. I am marking this topic resolved, but please update it if 
   you have problems or questions regarding the above suggestions.
 *  Thread Starter [alx359](https://wordpress.org/support/users/alx359/)
 * (@alx359)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/mla_gallery_alt_shortcode_ids/#post-9403199)
 * Thanks, David! Think I understand what you mean and do some tests with these.

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

The topic ‘duplicate’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [alx359](https://wordpress.org/support/users/alx359/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/mla_gallery_alt_shortcode_ids/#post-9403199)
 * Status: resolved