Hi there!
Yep, that code should do what you want. Since I’m at it, here’s a revised version:
<?php
if ( function_exists('wpp_get_mostpopular') && is_single() ) {
global $post;
$myCats = '';
$categories = get_the_category( $post->ID );
if ( !empty($categories) ) {
foreach( $categories as $category ) {
$myCats .= $category->cat_ID . ', ';
}
// remove trailing comma
$myCats = rtrim($myCats, ', ');
}
$args = array(
"range" => "all",
"limit" => 3,
"thumbnail_width" => 214,
"thumbnail_height" => 160,
"stats_views" => 0,
"excerpt_length" => 155,
"pid" => $post->ID,
"cat" => $myCats,
"post_type" => "post",
"post_html" => '<li><div class="img">{thumb}</div><div class="title">{title}</div><div class="title">{summary}</div></li>'
);
wpp_get_mostpopular( $args );
}
?>
Also, disallowed WPP styles, but they are declaring in html code.
Just to be sure: did you hit the Apply button after setting “Use plugin’s stylesheet” to disabled?
Also, is thereway to enable worpdress thumbnail size supporting (thumbnail,medium,large).
Yes, but that feature is only available for the WPP widget.