• This might seem like a strange question, but I’d really like to know if it’s possible to add images to a post and not have them all show up in a gallery?

    Now first things first, I know how to insert an image as full size, and I know how to insert a gallery post, but can I do them separately in the same post?

    Here is an example from my blog. Ignore my fangirling.

    As you can see, the first image is an illustration, and the rest are photos. I don’t want the illustration to show up with the photos. Let me know if this is possible, thanks~! I hope it isn’t a really simple answer, lol.

Viewing 15 replies - 1 through 15 (of 20 total)
  • Upload the illustration using Admin/Media/Add New. This will ensure that the illustration does not have an association with any specific post. When creating the post, use the Gallery tab in Add Media to locate the illustration and add it to your post. Then upload your other photos as per normal whilst editing the post and publish the post’s gallery.

    An image will only be included in a post’s gallery if it has a direct association with that post (ie been uploaded whilst creating/editing the post).

    That’s exactly what I did, esmi — uploaded an image via Admin/Media/Add New. Like Caracco, I also want to have an image appear on a post, but not have this particular image appear in the gallery grid on the post.

    But, when I inserted the image in question to the post (from Media Library), it was automatically associated with the in-post gallery, and appeared in the post’s gallery grid. When I checked the post’s gallery, this image was indeed in the gallery.

    Indeed, I tried it too and it doesn’t solve the problem. I was googling to find out if there’s someone who made an attempt to help us ??

    Here’s the information that i”ve found

    Filter images from WordPress [gallery]

    Hope it will be useful ??

    Best Regards,
    Brand Relations

    Shawn

    (@trebor79)

    The easiest way to do this is to upload your images for your gallery in your post like normal and add the gallery to your post.

    Then, as esmi mentioned, go to Media> Add New. Add the images you don’t want to appear in your post gallery to the Media Library.

    Copy the link to each image and use the plain ‘ol Insert/edit image button (or img from HTML view) in the post. Paste the links to the images there.

    A bit of a hassle, but it works.

    kestutis

    (@kestutis)

    I found like there, but bit easy way, even then images are uploaded, how to exclude from gallery, but keep in post.
    So images uploaded, but one of them need to exclude from gallery, but keep in post.
    Go to Admin/Media and delete image which want to exclude from gallery. Then upload again there Admin/Media/Add new. That’s all.

    New uploaded image has same path to it, so normally appear on post where it was before, but do not appear in gallery, because now isn’t associated with any post.

    Neither the method outlined nor the plugin are working for me in 2.9.1. If I use the general media upload then when I add the image to the post from the media library the it automatically gets added to the post’s gallery as well. Then if I delete the image from the gallery it removes it from the media library too!

    The plugin both doesn’t work AND screws up the styling for the gallery…

    I have this same issue as well. This should be corrected in a future WP release.

    The Multiple Galleries plugin solves this very well, but there’s a fix in the comments section that needs to be implemented before it’ll work in 2.9 until he incorporates the fix into a new release…

    WordPress allows you to exclude images via the shortcode as of WordPress 2.9. You need to go to HTML view and add:

    exclude="ID_OF_ATTACHMENT"

    So for example:

    [gallery exclude="2192" link="file" columns="9" orderby="title"]

    This definitely needs better GUI implementation, but it works.

    Hi all,

    Gallery exclude and include is broken in wordpress 2.9.1
    I want some confirmation before adding a bug ticket

    cheers

    Pretty sure it works.

    FYI, this is the plugin I mentioned a few posts up:
    https://konstruktors.com/blog/projects-services/wordpress-plugins/multiple-galleries/

    It removes the need to manipulate the shortcode (although obviously it’s good to be able to play with the shortcode as neeeded)

    The plugin seems to take away the ability to even open up the “Insert Gallery” tool when editing a post for me. None of the buttons work when I click on them. It could be a compatibility issue with other plugins I have activated, but I can’t get rid of them. That plugin is supposed to work with 2.9.1? It seems like it would be a useful plugin, in fact it seems like something WordPress should have implemented in the first place.

    How stupid it is that you’re forced to include every image used in the post in the gallery. I’m being forced to use a “spacer” image, just one pixel wide, in order to put non-breaking spaces in my posts, thanks to another one of WordPress’s ridiculous idiosyncrasies, (ereasing all the non-breaking spaces I input), and now my galleries have a spot reserved for that spacer image. ?? Dumb.

    And no, the exclude attribute in the gallery tag does not work for me, sadly. I don’t mind writing shortcode, but it doesn’t work for me. ??

    Something is definitely wrong with the plugin I posted (which is weird because I got it to work on one 2.9.1 installation and use it!) I don’t know what happened.

    As for exclude in shortcode, try include and see if that works. Because I’ve used that and had no problem but I don’t know if I’ve used exclude.

    Hi all! Anyone tried to solve a similar problem with Gallery and Thumbnail? I explain myself better. I’ve images which I want to show up in the Gallery. And later I’ve upload an image (totally different size), to use as Thumbnail.

    Indeed, the Thumbnail picture shows up at the end of the other pictures in the Gallery. Ok, not a big issue. But I would like to set this one off from the Gallery. I’m sure there is a simple solution. I just wander to find it… ??

    By the way, “exclude” works fine in the Gallery short code. Well, at least in my case.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘How to exclude images from post gallery but keep in post?’ is closed to new replies.