|$image = get_field('your_image_field_name');|
|$atts = array(|
|'imageid' => $image,|
|'size1' => '0',|
|echo tevkori_responsive_shortcode($atts) ; ?>|
|<figcaption><?php echo get_cat_name($value); ?></figcaption>|
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
This is the code I use in conjunction with the
You will need to create an image field in ACF and be sure to set the 'return value' to Image ID.
(You can ignore the figure elements above, just left them in there to help give some context to the important code - from lines 3 to 10)
Some background on the tevko responsive image plugin: http://css-tricks.com/hassle-free-responsive-images-for-wordpress/#comment-1581891