カテゴリ wp_list_categories

<?php wp_list_categories(array(
'title_li' => '',//最初に何も入れない 入れると<li class="categories">入れた文字<ul>リスト一覧</ul></li>となる
'taxonomy' => 'category', //カテゴリ
'hide_empty' => 0, //記事がなくとも表示
'orderby' => 'order',//順番は指定します
'depth' => 1//子は表示しません。
)); ?>

http://wpdocs.sourceforge.jp/テンプレートタグ/wp_list_categories

分岐基本

<?php if(is_home()): //ホームだったら?>

<?php elseif(is_tax('genre')): //タクソノミーだったら?>

<?php elseif(is_singular( 'performer' ) )://カスタムポストのシングルページだったら?>

<?php elseif (is_archive()): //アーカイブだったら?>
<?php if (( get_post_type() == 'event_report')): //event_reportのポストタイプだったら?>
<?php endif; ?>

<?php else: //それ以外だったら?>

<?php endif; ?>

ディスプリクションにカスタムフィールドの文字を指定数だけ入れる ソースを改行させない

<META name="description" content="
<?php echo mb_substr( str_replace(array("\r\n","\r","\n"),'',strip_tags(get_post_meta($post->ID,"プロフィール",true))), 0, 120); 
//ソースを改行させない カスタムフィールドの文字を指定数だけ入れる?>"> 

ディスプリクションのキーワードにタグ名とターム名を入れる

<META name="keywords" content="<?php //ターム名リンク無しで取得
$terms = wp_get_post_terms( $post->ID, 'genre' ); //分類で設定した名称
$names = array();
     echo ""; //前の文字
     foreach ( $terms as $term ) {
          $names[] = $term->name;
     }
     echo implode( ',', $names ); //区切り文字を指定
?><?php
$terms = wp_get_post_terms( $post->ID, 'chiiki2' ); //分類で設定した名称
$names = array();
     echo ","; //前の文字
     foreach ( $terms as $term ) {
          $names[] = $term->name;
     }
     echo implode( ',', $names ); //区切り文字を指定
?><?php //タグ名リンク無しで取得
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ',';
}
}
?>">