WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
[resolved] Attachment ID always returned (3 posts)

  1. Kurt
    Member
    Posted 1 year ago #

    I've added an image field. No matter what Return Value setting I select, the attachment ID is always returned.

    I'm using get_post_meta if that makes a difference.

    Any fix for this?

    Thanks!

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Kurt,

    The ID will always be saved. However, when you use get_field or the_field, the value will be formatted to your option setting.

    Please don't use get_post_meta. ACF has a very attractive and much more powerful API. This is documented on the ACF website

  3. Kurt
    Member
    Posted 1 year ago #

    OK.

    Thanks Elliot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.