関連カテゴリーの人気記事
37); $categories=get_categories($args); foreach($categories as $category) { $catlist[] = $category->cat_ID; } $list = implode(',', $catlist);
if (function_exists('wpp_get_mostpopular'))
if (is_category('blog')) {
wpp_get_mostpopular('post_type=post&thumbnail_width=200&limit=6&cat=array(37,'.$list.')&range=all');
} elseif ($ccatinfo->category_count > 15 && !in_category('newsrelease')) {
wpp_get_mostpopular('post_type=post&thumbnail_width=200&range=all&limit=6&cat='.$ccat);
} elseif ($ccat->category_parent && !in_category('newsrelease')) {
wpp_get_mostpopular('post_type=post&thumbnail_width=200&range=all&limit=6&cat='.$pcat);
} else {
wpp_get_mostpopular('post_type=post&thumbnail_width=200&range=all&limit=6&cat=-19' );
}
?>