Custom Fields
Re-Envisioned
Support General Image field – image URL via MB Rest API?

  • Creator
    Topic
  • #6464
    Resolved Silvio
    Participant

    Hey! 🙂

    I’m working with MB Rest API and I would like to retrieve also the URL of an image I uploaded via ‘image_advanced’ and not only the attachment_id.

    As I’m working with a lot of images I would like to avoid to make an extra call for every image to get the URL and other data.

    Could you point me in a direction how I could easily save/retrieve also the url/other data?

    Thanks a lot!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #6538
    Truong Giang
    Participant

    Hi there,

    Thank you for your suggestion, we will consider this idea. Thank you.

    #19293
    Amanda
    Participant

    Hi, any updates on this? Would love to be able to fetch the full image URL via rest API.

    #19299
    Long Nguyen
    Moderator

    Hi Amanda,

    The field image_advanced supports the property full_url to get the full URL of the image, see my screenshot https://cl.ly/9ee6bc157bd4

    For more information, please follow the documentation
    https://docs.metabox.io/fields/image-advanced/#template-usage

    #19311
    Amanda
    Participant

    Hm, weird…it doesn’t work for me. Image Advanced field only gives me the image ID. Is there something special I need to do to get the rest of the image data?

    #19312
    Amanda
    Participant

    Seems like sometimes Image Advanced fields show all the data, but other times just displays the image ID. Some sort of bug happening but can’t pinpoint what’s causing it to not work sometimes.

    #19315
    Amanda
    Participant

    I started a new topic for this

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.