I have an image that I’d like to use at the beginning of my post, and would also like to insert a gallery at the end of my post, but would like to exclude the image used at the beginning of the post from the gallery. Is this possible?
I’ve tried uploading the image separate from the others and then inserting it into my post from the media library, but this doesn’t work.
A gallery default setting is to show all the images attached to a given post. So, to display a gallery of images in one post, and then an additional image not included in the gallery, you have two solutions:
1. Attach all the gallery images to your post, and leave the one image you don’t want to include in the gallery unattached (you may do so by uploading it from the Media > Add New section of your dashboard instead than uploading it form the Post Edit page ).
2 Attache all the images to your post, then use the “exclude” by image ID number parameter of the gallery shortcode to exclude the image that you don’t want into the gallery.