Support » Plugin: Advanced Custom Fields » [Plugin: Advanced Custom Fields] File Upload only gives attachment id

  • Resolved martiniboy

    (@martiniboy)


    Excellent plugin although since the last update I have not been able to get the file url everytime that I upload a document (tried pdf and word doc) it only returns the attachment id rather than the file url. I have tried this on a couple of different sites to make sure it is not theme related.
    Any ideas of how to get the file url, and yes I have ticked file url when setting up the custom field.
    Just checked the image upload and that is outputting the id as well.

    Thanks in advance

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • @martiniboy

    Did you figure this out? I’m having the same problem.

    @joseamcoke
    Not for what I was trying to use it for, if you call through the_field(”) it will automatically convert it to the file url.
    I need to call it from get_post_meta which only returns the attachment id – long story why I can only call it by this but resulted in creating my own upload box for the file so I could get it to work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Advanced Custom Fields] File Upload only gives attachment id’ is closed to new replies.