Hi. I’m new at code and my wordpress site has a broken feature because of some minor change I made.
Says the error is line 26, which is the one that starts with $img. For you code experts out there, what looks wrong here? I can’t tell.
<?php while (have_posts()) : the_post(); update_post_caches($posts); ?> <li><?php unset($img);
if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
$thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' )
$img = $thumbURL[0]; }
else {
unset($img);
if ($wpzoom_cf_use == 'Yes') { $img = get_post_meta($post->ID, $wpzoom_cf_photo, true); }