WordPress.org

Ready to get started?Download WordPress

Forums

Expose hidden attachment fields (3 posts)

  1. wlindley
    Member
    Posted 1 year ago #

    Now that the new Media Library sidebar includes the Title, Caption, and Alt Text, can we finally be able to edit the following hidden data for attachments?

    • post_date -- So we can set an image to be published in the future (e.g., a designer could upload twelve images to a post about next season's fashions, but set only the first one to be displayed with the remainder scheduled to be public after the expo)
    • comment_status, ping_status -- If you add an attachment while comments or pings are enabled, and later disable them for a post, that does not disable viewers from still commenting or pinging existing attachments from the attachment page. The fields exist in the database but the WP admin has no way to edit them without resorting to MySQL.
    • post_status -- Currently all attachments get the status "inherit" but "draft" and "private" would be very useful when attachments are removed from the site, but we don't want to delete them, just temporarily withdraw them from a post or page.
    • post_name -- Attachments get a hidden slug based on the attachment name, which cannot be edited without using MySQL. Many times it would be handy to edit this; there is already a plugin for this, but it hasn't been updated in ages.

    It might also be worth noting in the Gallery editor, that changing a caption on attachment, changes its caption in the database which will modify all the galleries in which it is inserted -- the captions are not on a per-gallery-insertion basis!

  2. This sounds like a major change, vs fixes, and since 3.5 is so close, it's probably a 3.6 thing. Not the caption thing, the hidden fields part.

  3. It might also be worth noting in the Gallery editor, that changing a caption on attachment, changes its caption in the database which will modify all the galleries in which it is inserted -- the captions are not on a per-gallery-insertion basis!

    This isn't a regression, I don't believe. Possibly worth addressing later, or just relegating to plugin territory.

    RE: the extra fields, it would be relatively simple for a plugin to add those fields in, and sounds like it has been. Probably should be updated for 3.5, but it would be a relatively simple one to do. If noone updates the existing or writes a new one, ping me in a couple weeks and I'll cobble it together quickly.

Topic Closed

This topic has been closed to new replies.

About this Topic