5月 17, 2013 | 会員サイト
参考サイト ja.forums.wordpress.org… 特定カテゴリーだけ除外をして一覧表示をさせたい カテゴリーID24を除外 ‘category__not_in’ => array( 24 ), 複数ある場合はコンマで区切る。カテゴリーID24とID29を除外 ‘category__not_in’ => array( 24,29 ), 例:)カテゴリーID24とID29を除外した投稿をコメントの多い順に3件表示 <?php...5月 2, 2013 | wordpress
index.phpかcategory.phpに以下を貼り付け <?php $first = true; if(have_posts()){ while(have_posts()){ //★ループが始まって the_post(); echo ‘<div class=”waku”><h2 class=”entry-title”><a href=”‘; the_permalink( ); echo...2月 22, 2013 | 会員サイト
カテゴリー一覧ページで新しい順、コメントの多い順などと並び替える 下のがなぜか使えなくなったので下記に変更 参考サイト ja.forums.wordpress.org… <?php $uri = home_url( ‘/’ ); ?> <?php if( is_category() or is_tag() ) : ?> <?php $term = get_queried_object(); ?> <?php if ( $term ) : ?>...