Support » Plugin: Advanced Custom Fields » [Plugin: Advanced Custom Fields] custom thumbnail sizes

  • Resolved RRikesh


    Hello, I’m using the ACF plugin (version 3.4.1) and I’m having troubles setting up custom thumbnail sizes.

    I tried to follow the following example found on the ACF Docs but I’m not getting any result.

    <?php $image = wp_get_attachment_image_src(get_field('image_test'), 'full'); ?>
    <img src="<?php echo $image[0]; ?>" alt="<?php get_the_title(get_field('image_test')) ?>" />

    I have added the following line to my functions.php file
    add_image_size('eff_image', 528, 373, true);

    Then I’m calling it with

    $image = wp_get_attachment_image_src( get_field('illustration'), 'eff_image' ) ;

    And I’m not getting anything in the $image variable
    Anything wrong with that?


  • The topic ‘[Plugin: Advanced Custom Fields] custom thumbnail sizes’ is closed to new replies.