Post Image Segregation
Having trouble inserting some images. In my “Big Introduction” I inserted 9 window type images into my “Gallery”. Then when I go down to “Feature One” and insert the image there it ends up in my “Gallery too. I only want the “We Offer Pella” picture in “Feature One” not up in the top too. I tried selecting “Post to URL” and “Insert to Post” when adding the single image “We Offer Pella” to “Feature One” but I can’t seem to keep it out of the “Gallery” in “Big Introduction”.
Is my sequencing off, do I need to come in from the back-end or maybe I am missing something?
Any time you upload an image to a post, it becomes an “attachment” which automatically adds it to the [gallery] shortcode.
There are a few options. You could use the “exclude” parameter for those images e.g;
You can also use the “include” parameter if you only want to include a few images in the gallery.
Probably an easy question but I can’t find it. How to I find, get and set post ids and/or attachment ids?
Also, on a code pasting note. I do see [gallery link=“file” columns=“9”] for my nine columns when I figure out how to get the ids and decide whether to include or exclude do I paste that code right next to this maybe with once space and before the ?
HTML view for the page:
[gallery link=“file” columns=“9”] © 2011 Harvey Industries, Inc.
You would just put them in the brackets like so:
[gallery link="file" columns="9" exclude="1,2,3"]
Total WP beginner here.
...how do I find the id’s for each image there now so I know the ones to include or exclude. I have 10 images in the gallery, 9 I want in my “Big Introduction” where do I find the id reference numbers so I can exclude the one I don’t want?
...then in my “Feature Two” when I add an image I’ll add the exclusion for the too and when select the image from my computer just do “Post to URL” and “Insert to Post”?
Per the instructions on the WordPress page:
Note: To get an attachment ID for an image, go to your Media Library and hover over the image title you want to exclude. You can find the ID in the URL (the number after attachment_id=).
Not very intuitive if you ask me, but that’s the only method I know of for now.