Title: Exclude settings for shortcode help
Last modified: August 21, 2016

---

# Exclude settings for shortcode help

 *  Resolved [GnorthernGnome](https://wordpress.org/support/users/gnortherngnome/)
 * (@gnortherngnome)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/)
 * Hi,
 * I’m currently trying to set up a simple slideshow to pull in all images with 
   a certain tag **except** when they are from a single gallery ID (i.e. id=’2′),
   as that gallery is not really for public use. I’ve come across the **exclude**
   options in the short code documentation, however it seems to only work with image
   ID’s and not anything else. Is this correct, or is there a way to do what I want?
 * Also, on a slightly related note, can anyone tell me if it’s possible to have
   2 custom gallery templates running on a skin? I have one set up perfectly, would
   like another but it doesn’t want to display?
 * Cheers for the help!
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4741993)
 * [@gnortherngnome](https://wordpress.org/support/users/gnortherngnome/) – If you
   use the ATP to insert the gallery then you can use the Sort / Exclude panel to
   exclude those images you do not want shown.
 * I’m not sure what you are referring to with “2 custom gallery templates running”,
   can you elaborate on this?
 * Thanks!
 * – Cais.
 *  Thread Starter [GnorthernGnome](https://wordpress.org/support/users/gnortherngnome/)
 * (@gnortherngnome)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742001)
 * [@cais](https://wordpress.org/support/users/cais/): Thanks for the reply.
 * Unfortunately your suggestion won’t work for my purposes. I’m building the shortcode
   directly into the template for the pages that will form the backbone of a client’s
   website, so I can’t rely on the ATP 😉
    Further, it isn’t individual images I’m
   wanting to exclude but an entire gallery. As I am wanting to display all images
   that use a certain tag in a slide show on the page (which works fantastically),
   but I have one gallery that should never be shown in those slideshows as it is
   linked to promotional material rather than public photographs. I also can’t pull
   the slideshow only from one gallery, as it needs to update on the fly with images
   added to future galleries (being a part of the template, it can’t be edited easily
   by the client).
 * Also, don’t worry about the custom templates, I was worried using two was causing
   a conflict but it was an issue with a php loop within another part of the page!
   That part is sorted now 🙂
 * **tl;dr** I need a way to exclude content on a **gallery** level, rather than
   individually by images. Is that possible?
 *  [tizz](https://wordpress.org/support/users/tizz/)
 * (@tizz)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742004)
 * > Unfortunately your suggestion won’t work for my purposes. I’m building the 
   > shortcode directly into the template
 * [@gnortherngnome](https://wordpress.org/support/users/gnortherngnome/) you can
   exclude images also with shortcode identifying all the images of that gallery,
   e.g.: _exclusions=”1,2,3,4″_
    But I can understand that’s not practical if they
   are too many, or if the excluded gallery grows in future…
 *  Thread Starter [GnorthernGnome](https://wordpress.org/support/users/gnortherngnome/)
 * (@gnortherngnome)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742005)
 * [@tizz](https://wordpress.org/support/users/tizz/): yeh, I’ve played around with
   that setting. It also doesn’t work for me because I’m using a template to serve
   multiple pages, so it needs to be as water tight and future proofed as possible.
   A gallery ID will never change, so that is what I need to use 😉 Thanks for the
   reply though 🙂
 * EDIT: Also, to be clear, the images in the slideshow are being pulled from multiple
   galleries, the only selector being used is a tag_ids one 🙂
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742006)
 * [@gnortherngnome](https://wordpress.org/support/users/gnortherngnome/) – tl;dr–
   No.
 * The other issue to take into consideration is that the tags parameter does not
   work as a “union” where all tags must be present for the image to be shown. If
   any tag is present the image will be included in the gallery.
 * I would suggest as a work-around to use a specific tag for each instance of the
   shortcode you want to display (which I imagine could be very inconvenient) or
   ensure all of the image you do not want to display have no tags at all and then
   specify every tag you want to be used.
 * If this was simply a common gallery it would be much easier, but due to it being
   tags it can become quite convoluted.
 * – Cais.
 *  Thread Starter [GnorthernGnome](https://wordpress.org/support/users/gnortherngnome/)
 * (@gnortherngnome)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742007)
 * [@cais](https://wordpress.org/support/users/cais/): I’m aware it’s not the “usual”
   request 😛 And I do have a workaround, but it’s not very elegant at the moment
   so thought I’d check.
    As for your suggestions, the tag_ids used are already 
   singular. The idea is that the page slug is being injected into the shortcode
   using PHP; any images that are to appear on that page can then be easily sorted
   by the client by simply tagging them with the slug. However, some images may 
   overlap the pages they’re needed on, so using tags is necessary to make sure 
   they can be displayed in multiple places. The website is highly dynamic, it’s
   a portfolio of an events company, so every new event needs to have a new page
   and each event page will have photos from different years uploaded (therefore
   tagged to the same event hub page, but potentially displayed per year on other
   pages as well).
 * That said, it seems there is no current way to do this? I knew it would be a 
   long shot, but given that **excludes** allows for subalbums to be referenced (
   plus given the wealth of short code attributes not in the official documentation)
   I was hoping it was available somewhere to just set **excludes: g_2** or something
   🙂
 * EDIT: Oops, sorry missed your first sentence 😉 So it isn’t possible, any idea
   if this is a feature that may be added in the future? And thanks for all your
   help, other than this small issue the customisation of the plugin is fantastic
   so props to all involved 🙂 I will be rating shortly and very highly, definitely
   using it in some other builds I have coming up 🙂
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742008)
 * [@gnortherngnome](https://wordpress.org/support/users/gnortherngnome/) – It was
   definitely well worth asking. I spent the last little while trying various different
   ideas and none seem to work in the way you are describing what you are trying
   to accomplish, especially withe “dynamic” aspect of it.
 * I’ll run this idea by the rest of our Support Team (and developers when they 
   next come up for air) but no one has offered anything I haven’t already tried.
 * – Cais.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742011)
 * [@gnortherngnome](https://wordpress.org/support/users/gnortherngnome/) – I caught
   one of our developers taking a break and asked them about this … he was not able
   to think of anything either but did suggest it would make for a great Feature
   Request.
 * If you wouldn’t mind, we’d really like to get your thoughts and ideas on this
   whole idea on our Feature Request form, here: [http://www.nextgen-gallery.com/feature-voting/](http://www.nextgen-gallery.com/feature-voting/)
 * Thanks, again!
 * – Cais.
 *  Thread Starter [GnorthernGnome](https://wordpress.org/support/users/gnortherngnome/)
 * (@gnortherngnome)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742018)
 * [@cais](https://wordpress.org/support/users/cais/) – Thanks for the fantastic
   support with this 🙂
 * I’ll pop on over to the Feature Request right now and outline my concept for 
   implementation 🙂 Great to see a company promoting that feature 🙂
 *  Thread Starter [GnorthernGnome](https://wordpress.org/support/users/gnortherngnome/)
 * (@gnortherngnome)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742019)
 * Feature request sent 😉 I’m marking this as **resolved** as I don’t believe there’s
   anywhere else to go from here 🙂 Thanks again!
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742021)
 * [@gnortherngnome](https://wordpress.org/support/users/gnortherngnome/) – Thank
   you very much for the kind words and adding your ideas as a Feature Request. 
   We really appreciate this sort of feedback from the community.
 * – Cais.

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

The topic ‘Exclude settings for shortcode help’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [NGG](https://wordpress.org/support/topic-tag/ngg/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 11 replies
 * 3 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/exclude-settings-for-shortcode-help/#post-4742021)
 * Status: resolved