As promised, here’s the fix:
Open wordpress-popular-posts.php using an editor such as Windows’ Notepad or Adobe Dreamweaver, and replace this code (around line 726):
// build custom layout
if ($instance['markup']['custom_html']) {
if ($instance['markup']['pattern']['active']) {
$content .= htmlspecialchars_decode($instance['markup']['post-start'], ENT_QUOTES) . $this->format_content($instance['markup']['pattern']['form'], $data, $instance['rating']) . htmlspecialchars_decode($instance['markup']['post-end'], ENT_QUOTES) . "\n";
} else {
$content .= htmlspecialchars_decode($instance['markup']['post-start'], ENT_QUOTES) . $thumb . '<a href="'.get_permalink($wppost->ID).'" title="'. $title_attr .'"><span class="wpp-post-title">'. $tit .'</span></a>'.$post_content.' '. $stats . $rating . htmlspecialchars_decode($instance['markup']['post-end'], ENT_QUOTES) . "\n";
}
} else {
$content .= '<li>'. $thumb .'<a href="'. get_permalink($wppost->ID) .'" title="'. $title_attr .'"><span class="wpp-post-title">'. $tit .'</span></a>'. $post_content .' '. $stats . $rating .'</li>' . "\n";
}
… with this:
// build custom layout
$innerHTML = "";
if ($instance['markup']['custom_html'] || $instance['markup']['pattern']['active']) {
if ($instance['markup']['pattern']['active']) {
$innerHTML = $this->format_content($instance['markup']['pattern']['form'], $data, $instance['rating']);
} else {
$innerHTML = $thumb . '<a href="'.get_permalink($wppost->ID).'" title="'. $title_attr .'"><span class="wpp-post-title">'. $tit .'</span></a>'.$post_content.' '. $stats . $rating;
}
$content .= htmlspecialchars_decode($instance['markup']['post-start'], ENT_QUOTES) . $innerHTML . htmlspecialchars_decode($instance['markup']['post-end'], ENT_QUOTES) . "\n";
} else {
$content .= '<li>'. $thumb .'<a href="'. get_permalink($wppost->ID) .'" title="'. $title_attr .'"><span class="wpp-post-title">'. $tit .'</span></a>'. $post_content .' '. $stats . $rating .'</li>' . "\n";
}
Gotta add that the {image}
and {summary}
tags need to be activated by ticking their respective options (“display post excerpt” and “display post thumbnail”) in order to work. Otherwise these tags will be ignored when building the HTML output.
Anyways, give it a try and let me know the results.