How to use thumbnail size of image if I’m only using src to get image
I have a custom field for an image, and using it this way:
<?php $item_img = get_sub_field('image'); ?>
<img src="<?php echo $item_img ?>" />
But I want to use the thumbnail version of the image, as set to 150×150 in wordpress.
How do I do that with this type of setup?
Do I have to set a custom add_image_size()
or does wordpress have duplicated thumbmail size images?
$299 Affordable Web Design WordPress
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.