Advanced Custom Fields
[resolved] File Upload only gives attachment id (3 posts)

  1. martiniboy
    Posted 4 years ago #

    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


  2. joesamcoke
    Posted 4 years ago #


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

  3. martiniboy
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic