diff --git a/controller/classes/Subtemplate.php b/controller/classes/Subtemplate.php index c6a733c..2f927f3 100644 --- a/controller/classes/Subtemplate.php +++ b/controller/classes/Subtemplate.php @@ -1189,18 +1189,20 @@ class Subtemplate { if ( $testimonials ) { foreach ($testimonials as $testimonial) { - $id = $testimonial->ID; - $quote = get_field('quote', $id); - $name = get_field('name', $id); - $company = get_field('company', $id); - $link = get_field('link', $id); - $photo = get_field('photo', $id); + $id = $testimonial->ID; + $quote = get_field('quote', $id); + $name = get_field('name', $id); + $company = get_field('company', $id); + $link = get_field('link', $id); + $photo_object = get_field('photo', $id); + $photo_size = 'thumbnail'; + $photo_url = $photo_object['sizes'][$photo_size]; $testimonialMarkup .= "
{$quote}
- + {$name} {$company}