Custom Fields
Re-Envisioned
Support Meta Box Group Trying to use php to add advanced img from group field

  • Creator
    Topic
  • #30237
    jimimac
    Participant

    I've been trying to use this code from the docs...

    $images = rwmb_meta( 'info', array( 'size' => 'thumbnail' ) );
    foreach ( $images as $image ) {
        echo '<a href="', $image['full_url'], '"><img src="', $image['url'], '"></a>';
    }

    Does the 'info' part mean the field ID? I've tried it that way and I cant make the image appear.

    so my custom field group field has an ID of "blurb_1". Inside this is an advanced image field with the ID of "blurb_1_image".

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