Can I attach an image uploaded to one post to a second without uploading again?
-
1. If I add an image to a gallery of a page by “importing” it from the page it was originally uploaded to and attached to, does it become attached to the second page as well?
2. If the answer is no to the above question, then is there a way of attaching an image uploaded to one post or page, to other posts/pages, without uploading them to each? I think the answer is no, but why not?
The blog I need help with is: (visible only to logged in users)
-
You just insert the image directly from your Media Library. When you click Insert Image, you’ve got two choices: Upload or Media Library. Choose the latter and use the search function or scroll back to find the image you want.
-
Raincoaster,
Thanks. Yes, I know how to do that. But that’s not my question. Images inserted via the Media Library are not attached to the secondary post or page in the sense I mean. Essentially I want to transfer the attachment to a second page so that if I delete the originating post, or delete the image from the originating post, the image will remain and be present in the gallery of the secondary post. This doesn’t happen and it’s repeatedly caused major problems on my site, because I forget that the image on the secondary page is still dependent on it’s attachment to the first page.
To put it more simply, WordPress appears to allow only unattached images in the media library to be attached to a post or page. This makes transfer of images from one relatively large gallery to another a long and tedious process. I perceive two methods, both extremely inefficient when a large number of images are involved:
1. Upload each image again from your files. This can be a problem for me because I acquire so many files in my Windows XP documents folder that every couple of months I send them, perhaps in 30 or 40 category folders, to an external HD, and begin again with an empty image file section.
2. Delete the original post causing it’s images to become unattached, then go hunting for them in the media files and attach them one by one to the new post or page.
Am I missing something?
-
No, you’re not missing anything. I missed the fact that you’re using galleries. As far as I know, you’re stuck with the re-uploading. Deleting posts is VERY bad for your google rankings.
-
Okay. But it’s not just an gallery issued. It’s an attachment issue. The image loaned to the second post in the case described above will disappear (404 error) just as it will if displayed in a gallery. The result is not different when concerning a large gallery, just more or problem.
-
I meant to say “a single image loaned to the second post…will disappear” in the same manner as a gallery will in the case described.
-
Presently you must upload an attach an image to a single post or page in order to have it available for loaning here and there throughout the site. And such loaning always comes with the risk of losing every display of the lent image if the originating image or page is somehow mistakenly deleted.
Why not instead allow uploading of images to a site pool, which any post or page can borrow from without such risk? The pool images could be safeguarded so they aren’t easily deleted.
-
Presently you must upload an attach an image to a single post or page in order to have it available for loaning…
That is, if you want to display galleries. You can avoid attachments for some images, creating a pool of unattached images. However, I’m not sure what would happen if you loaned an unattached image, and then deleted the floating unattached image (without attaching it to the post it was loaned to). Probably you’d lose both.
-
I think you are missing something: you can create galleries by selecting images from your media library (no matter which post or page the images are attached to).
-
Presently you must upload an attach an image to a single post or page in order to have it available for loaning…
Nope: you can upload it via Media > Add New.
-
I think you are missing something: you can create galleries by selecting images from your media library (no matter which post or page the images are attached to).
Thanks, justpi, but I haven’t missed that. I’ve done that many times. However, that doesn’t solve the problem I’ve described. It is part of the problem. I think I may start a new thread on this an try to simplify it.
Nope: you can upload it via Media > Add New.
First, in my post editor I don’t see the buttons “Media > Add New”. I see
Add Media > Upload Files > Insert Media or Create Gallery
Add Media > Media Gallery > Insert Media or Create GalleryBut I think you’re right. I’ve forgotten that you can create a gallery from the Media Gallery, not just by uploading from files. So apparently a single image uploaded once from a file can be attached to different posts/pages in this manner. Is that correct?
-
I understand now that you can create a new gallery from existent images in your media files, no matter where they are. But I see why I’ve avoided doing this so often in the past, and opted instead for copy/pasting. I think it’s just extremely impractical in some cases, too difficult.
For example, I have one gallery with over 100 images. 109 I think. They are not systematically organized in the Media Library because they were added to a page gallery over a long period of time. They might have a keyword or two in common, or they might not.
How long will it take me to hunt all of those 109 images down again among a Media Gallery of over 9,000 images, a Media Gallery which doesn’t tell you in the Add Media page 1.) if the image is presently attached to a post or page, or 2.) where the image is presently attached if it is attached?
-
If I want to move a gallery from one post to another and no longer display the original gallery/post, I will ordinarily copy and paste the gallery to the second post and change the status of the first post to draft. This saves a ton of time, but it’s a hassle because of at least the following to results: a. You might forget that the original post is lending it’s images to the new one and delete it, and b. You might forget the title of the original post and have to go hunting among hundred of posts for it.
-
-
First, in my post editor I don’t see the buttons “Media > Add New”.
Of course you don’t: Media is in the dashboard sidebar. Leads to Library or Add New. Uploading images via Media > Add New results in unattached images.
Thanks, justpi, but I haven’t missed that. I’ve done that many times. However, that doesn’t solve the problem I’ve described. It is part of the problem.
You’re welcome. But if you hadn’t missed that, and done it many times, then how come you wrote that you only “perceive two methods, both extremely inefficient” (reuploading or deleting-hunting-attaching)?
And if I understand correctly, you seemed to think that a gallery on a post requires images attached to that post; that’s not true, so I don’t see why my suggestion doesn’t solve your problem.
Or am I missing something now? The part about accidentally deleting images perhaps? If so, you mean deleting them from a post or page, or from the Media Library?
Or the new part, re moving a gallery from one post to another? If so, I need you to clarify what you mean when you say you “copy and paste the gallery”. Copy and paste what exactly? the gallery shortcode? the new one or the old one? -
So apparently a single image uploaded once from a file can be attached to different posts/pages in this manner. Is that correct?
Yes, and everything works wonderfully as long as you use the Photo Carousel to display your Galleries or insert the image directly in a post as a single image and link it to anything but an “Attachment Page”.
-
Thanks, justpi, but I haven’t missed that. I’ve done that many times. However, that doesn’t solve the problem I’ve described. It is part of the problem.
You’re welcome. But if you hadn’t missed that, and done it many times, then how come you wrote that you only “perceive two methods, both extremely inefficient” (reuploading or deleting-hunting-attaching)?
Yes, I should have deleted that first part, because I admitted later in the same post that I’d been in error, hadn’t understood your meaning, and that I’d forgotten how to create new galleries without uploading from files:
I’ve forgotten that you can create a gallery from the Media Gallery, not just by uploading from files. So apparently a single image uploaded once from a file can be attached to different posts/pages in this manner.
But I do remain confused on a couple of points, both included in this statement of yours:
And if I understand correctly, you seemed to think that a gallery on a post requires images attached to that post; that’s not true, so I don’t see why my suggestion doesn’t solve your problem.
1. Yes, I did think that a gallery required images attached to the post. If I insert the most basic gallery shortcode, without any images identified ([gallery]) in a post, it is my understanding that the gallery will contain only the attached images. Am I using the “attached” incorrectly. What I ordinarily see when I do this is only the images that I’ve uploaded. I imagine also that images imported from the media library and added to the gallery would display as well, but isn’t that action of adding them to the gallery attaching them to the post as well?
2. Let’s assume 1.) that what you say about adding images to any gallery by using the Media Library is correct, and I can easily confirm that with tests, and 2.) that this procedure allows you to add to post/page gallery without attaching images to the post/page. Is this in fact the site image pool I was asking for?
I’m not sure that that resolves the problem of duplicating a large post gallery easily on a second post. Would each unattached image (acquired from the Media Library) in a post gallery have an ID? If so then it looks like one of my problems is solved, because post gallery shortcode can be copied and pasted on any other post or page.
It is on duplicate posts/pages that I’ve repeatedly experienced a problem, because I sometimes want to delete the original and retain the duplicate. If we now have galleries of unattached images which can be inserted with shortcode anywhere (posts and pages) on the site, then that part of the problem appears to be solved.
However, there seems to be a special risk involved with galleries composed of unattached images. If you delete the shortcode of a gallery from a post where the images have been uploaded from files and are attached, the shortcode is retrieved by merely inserting the [gallery] shortcode again, though you may have to change the image order and add other details (column number, type, link, etc). With a gallery composed of unattached images, on the other hand, a lost or accidentally deleted shortcode may be lost forever, though it may be found among the 25 archived revisions.
This could still leave me hunting among thousands of unattached images for 10 or 100 images needed to reconstruct a gallery accidentally deleted. There are risks either way (attach images or leave unattached). It does, however, appear to be easier to safeguard against this occurring with galleries composed of unattached images.
I’m going to have to experiment with all of this, because I’m still a bit confused.
-
If you are inserting the shortcode directly only as
[gallery]then yes you need to have those images uploaded to the post or page where the Gallery appears.BUT you are missing out on taking advantage of the huge update that WordPress.com made to the Gallery feature last year. That update allows you to use any image in your Media Library in a Gallery, have multiple Galleries with different settings in the same post and even insert single images in the same post with a Gallery without it becoming attached to the Gallery. It does this by automatically adding the image ID numbers in the Gallery shortcode.
Perhaps reading my post here will help (and hopefully not confuse) http://agallerydemo.wordpress.com/2012/12/16/media-update-multiple-galleries-and-single-images/
-
Yes, and everything works wonderfully as long as you use the Photo Carousel to display your Galleries or insert the image directly in a post as a single image and link it to anything but an “Attachment Page”.
I’m going to have to review WP support on the Photo Carousel because this part of your statement goes over my head at the moment.
Regarding “link to” options I’m also not clear. I guess I’ve usually just gone with the default setting on “Link To” options. I’m examining the link options on page of mine containing a gallery and a slideshow. Both of the Edit Gallery pages have the Link To setting on Media File. But I thought I’d uploaded images to the page from Windows XP or external files. To check if this was so I inserted a simple “[gallery]” shortcode above the other two gallery shortcodes (each containing an ID for each image). The new gallery displayed 38 of the 39 images shown in the existent gallery and slide show. I presume this means that 38 images are attached to the page. Why then are those galleries linked to Media File? What is Media File? Is it the image file in the Media Library?
-
I’m not missing out entirely.
I begin with the simple [gallery] code, but it changes as soon as I reorder the images, which I always do. At first I hated the IDs for each image, but I’ve seen some of the ways in which they can be useful. For example, I used slide shows and galleries on the same post or page. So far these have included the same images, usually in the same order, but I know that there are many other alternatives.
Perhaps reading my post here will help (and hopefully not confuse) http://agallerydemo.wordpress.com/2012/12/16/media-update-multiple-galleries-and-single-images/.
Thanks. I’m looking forware to reading it.
- The topic ‘Can I attach an image uploaded to one post to a second without uploading again?’ is closed to new replies.