WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Custom Field Suite] File upload shows ID regardless if ID or URL is selected

[Resolved] [Plugin: Custom Field Suite] File upload shows ID regardless if ID or URL is selected

Viewing 2 replies - 1 through 2 (of 2 total)
  • I replaced get_field with $cfs->get (Had to include global) and it’s working now.

    I guess you are actually storing the ID in the field, and then if URL is selected your get function returns the URL. I can see why you did it that way (letting the end user switch between the two), but it’s just different than what I expected.

    Plugin Author logikal16

    @logikal16

    Nick, that’s correct. The attachment ID is stored in the database.

    That way, we can either return the ID directly, or pass it through wp_get_attachment_url().

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Custom Field Suite] File upload shows ID regardless if ID or URL is selected’ is closed to new replies.