Custom Fields
Re-Envisioned
Support General image_upload post-thumbnail size returns full url

  • Creator
    Topic
  • #16957
    Dragan
    Participant

    As stated in the topic title:

    When using image_upload field and calling the images with size ‘post-thumbnail’ (as you instructed, from https://codex.wordpress.org/Function_Reference/wp_get_attachment_metadata ), the function returns the ‘full_url’.

    $images = rwmb_meta( 'my_img_upload_field', array( 'size' => 'post-thumbnail' ), $post_id );
    foreach ($images as $image) {
        echo $image['url'];
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.