get_var("SELECT parent FROM ".$wpdb->prefix."term_taxonomy WHERE term_id = $ccat"); $pid = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = 'config'"); if (get_field('recommend')) { $posts = get_field('recommend'); } elseif (get_field('recommend','category_'.$ccat)) { $posts = get_field('recommend','category_'.$ccat); } elseif (get_field('recommend','category_'.$pcat)) { $posts = get_field('recommend','category_'.$pcat); } elseif (get_field('recommend_common', $pid)) { $posts = get_field('recommend_common', $pid); } if ($posts) { ?>

おすすめ記事

    9 ) {break;} ?> >

      '; } ?>

関連カテゴリーの人気記事

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' ); } ?>