Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matt Gibbs

    (@mgibbs189)

    Hello,

    Set the field’s Return Value setting to Attachment ID, then you could pass the attachment ID into one of WP’s native image resizing functions.

    $attachment_id = CFS()->get( 'your_field' );
    $image_data = wp_get_attachment_image_src( $attachment_id );
    echo $image_data[0];
    
    Thread Starter martijnvl_

    (@martijnvl_)

    Thanks! Works!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘File upload image size output’ is closed to new replies.