WordPress.org

Ready to get started?Download WordPress

Ideas

Unattaching

  1. jimisaacs
    Member

    12345

    I'll keep this short and sweet.

    If I don't want to delete my media files from the server but remove them from a post or move them to another post, I currently have to go into the DB and find then change the attachments by setting their "post_parent" to zero.

    This idea seems so simple it may be 2.9 material?

    If anyone from the core team is interested in this little diddy, but doesn't have time can someone please direct me to a tutorial of some sort in how to contribute to the core?

    Posted: 4 years ago #
  2. jimisaacs
    Member

    12345

    Sorry I may or may not have answered my own question here.
    What does the 2.9 trash feature do in this regard.
    If you send attachments to the trash could you restore then to another post or am I completely off here. Oh well it is just an idea... hence...

    Posted: 4 years ago #
  3. jimisaacs
    Member

    12345

    Well after doing some research with my latest release tester, trash does not have any effect on the other column data other than "post_status".

    So to be even more specific, basically what would be really great is a little "unattach" link sitting right next to the "trash" link everywhere regarding attachments. I think it even merits being a bulk edit item.

    Something like:

    "Trash | Detach"

    Posted: 4 years ago #
  4. calanan
    Member

    I second this idea and thank you for your tip on detaching by hand:

    "...go into the DB and find then change the attachments by setting their 'post_parent' to zero."

    - mike

    Posted: 4 years ago #
  5. hilj
    Member

    This is a brilliant idea! Let us Unattach!

    Posted: 4 years ago #
  6. brianosaur
    Member

    12345

    Yes! Yes! Yes! I am currently assembling a site with attachments and my customer is changing their minds about where attachments go. I have a bunch now that I can't move. This would be an excellent feature to have.

    Posted: 4 years ago #
  7. Jen Mylo
    Key Master

    If you go into the post in question, you can remove an image from within the post (click on image, click on the red delete icon), which removes it from the post but leaves it in the media library. We probably won't add a way to unattach from the Media Library screen until we revisit the media workflow post-3.0.

    Posted: 4 years ago #
  8. Jeremy Clarke
    Member

    12345

    Jane, just to be clear this is more relevant than just removing an image from the post itself. Because each image has a parent_id in the database they are inherently linked. The most obvious effect of this is when the [gallery] shortcode is used. If you accidentally uploaded an extra photo to a post you need to delete it entirely to stop it from showing up in the gallery.

    I just checked and the process of manually deleting an image from a post with the red delete button doesn't change its wp_posts record in the database. I don't think you were implying that it was, but I just wanted to make sure there was no existing way to effect an attachment to remove its parent.

    I think the proper language for this action would be something like "Remove from post". If a link saying that was next to "Delete" in an attachment's settings in the Gallery tab of the uploader then most users would probably understand that it would un-attach the image from the post but keep it in the media library to avoid images breaking if they were used in the post.

    Whenever I explain the [gallery] shortcode to people I eventually get the response that its annoying that you are screwed if you accidentally upload an image that's not supposed to be in the displayed gallery, especially since there are obvious reasons to do so that aren't mistakes. A thumbnail is the most obvious example but there are many others.

    I think this would be a great addition to the media uploader and especially to the built-in [gallery] and its usefulness. Having this exposed would also be generally useful for educating users naturally about the relationship between images and posts, a topic which most users I talk to are confused about in the current setup.

    Post-attachment status and information would also be useful in the Edit Media screen you end up at from the Media>Library.

    Posted: 4 years ago #
  9. Jeremy Clarke
    Member

    12345

    Oh yeah, a mockup of the link for consideration:

    http://simianuprising.com/wp-content/uploads/2010/03/wp-idea-attachments-remove_from_post.png

    (in case it might work, i'll try an html image)
    <img src="http://simianuprising.com/wp-content/uploads/2010/03/wp-idea-attachments-remove_from_post.png">

    Posted: 4 years ago #
  10. scribu
    Member

    12345

    +1 on jeremy's mockup

    Posted: 4 years ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    12345
    34 Votes
  • Status

    This idea has been implemented