Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter agoranet

    (@agoranet)

    Looks like the variable $cfw_img was not being cleared so when it loops through the posts it uses the previous setting if that variable is not reset with a new thumbnail.

    I got around this by adding this code to CF_WidgetClass.php:
    ———————–
    else :
    $cfw_img = “”;
    ———————–

    So that block of code looks like this…
    ————————————————–
    if ($cfw_thumb) :
    if ($cfw_width) $cfw_img = ‘<img title=”‘.$cfw_image_title.'” src=”‘.$cfw_thumb.'” alt=”‘.$cfw_image_alt.'” width=”‘.$cfw_width.'” height=”‘.$cfw_height.'” />’;
    else $cfw_img = ‘<img title=”‘.$cfw_image_title.'” src=”‘.$cfw_thumb.'” alt=”‘.$cfw_image_alt.'” style=”maxwidth: ‘.get_option(‘thumbnail_size_w’).’; maxheight: ‘.get_option(‘thumbnail_size_h’).’;” />’;

    else :
    $cfw_img = “”;
    endif;

    Plugin Author tepelstreel

    (@tepelstreel)

    Good that you mention it. I don’t know exactly what has happened here. Actually the plugin was working fine. But obviously I have put a version of the plugin to the repo, that was not fixed yet.

    Cheers again for mentioning.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Featured Category Widget] Thumbnails repeating if no picture on post’ is closed to new replies.