• Hey there,

    Great plugin!

    I have a cropping issue.

    My code looks like this:

    <img src="<?php the_field('image'); ?>" class="img-circle" width="100px" height="100px" alt="<?php echo get_the_title(get_field($image)); ?>"/>

    I tried to use this code to output a cropped version of my image:

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

    However, nothing happened.

    I would like to output the medium image size with width 100px and height 100px.

    Can you help me out here? 🙂

    Thanks,
    Mika

    https://ww.wp.xz.cn/plugins/advanced-custom-fields/

The topic ‘Cropping Issue’ is closed to new replies.