Replies: 1
I’m currently working with images.
I tried the code for “Working with Images – URL” and it gave me the full image…then I wanted to define the size and took the other code Snippet “Working with Images – ID” but this did not work…
…do I have to enter an ID?
I actually don’t want specify an ID I just wanted to show a particular size of an uploaded image.
Can somebody please help an tweak the code a bit for this…
The following codes I tried so far:
<img src="<?php the_field('image_test'); ?>" alt="" />
<?php $image = wp_get_attachment_image_src(get_field('image_test'), 'full'); ?>
<img src="<?php echo $image[0]; ?>" alt="<?php echo get_the_title(get_field('image_test')) ?>" />