WordPress.org

Forums

Attachments
[resolved] Caption isn't actual Attachment Caption? (3 posts)

  1. pha3z
    Member
    Posted 1 year ago #

    I noticed the code demonstrates $attachments->field( 'caption' ) but nothing mentioned about description. I also noticed that the caption box in the metabox does not show the caption I've assigned to the attachment itself in the media library. So evidentally this plugin creates an additional caption field specific to the page it's used on?

    Is it possible to retrieve the caption or description from the attachment itself?

    http://wordpress.org/plugins/attachments/

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, Attachments field data is kept separate from the fields in the Media library on purpose, but you can tell Attachments to use the value from the Media library fields by default. Please see the Fields Reference.

  3. Andy Macaulay-Brook
    Member
    Posted 1 year ago #

    Ah - that makes sense now - maybe the documentation could make it a little clearer?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Attachments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.