Custom Fields
Re-Envisioned
Support General Display media modal values on the front end

  • Creator
    Topic
  • #9235
    grafiknz
    Participant

    Hi,

    I’m having trouble finding any documentation on how to display meta information attached to images eg /demo/media-modal.php

    Do you have any examples on how to display this content on the front end?

    Thanks

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #9252
    Anh Tran
    Keymaster

    Hello,

    The meta info in the media modal which is added by Meta Box is just custom fields of the attachment. You can get it with the helper function rwmb_meta, like this:

    $value = rwmb_meta( 'field_id', '', $attachment_id );

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