個別ページにもタグを表示

エントリー個別ページにはなぜだかタグが表示されていませんでした。
エントリー個別ページでもタグを表示するように変更しました。

変更箇所を以下にメモ。

単一記事の投稿(single.php)の下記部分

<div class=”entry-utility”>
<?php
printf( __( ‘This entry was posted in %1$s. ‘, $themeName ),
get_the_category_list(‘, ‘) ) ?>
</div><!– .entry-utility –>

をそっくり以下に置き換え。

<div class=”entry-utility”>
<?php if ($options[‘categories’]) : ?><span class=”cat-links”><?php echo get_the_category_list(‘, ‘); ?></span><?php endif; ?>
<?php if ($options[‘tags’]) : ?><?php the_tags( ‘<span class=”tag-links”>’, “, “, “</span>\n\t\t\t\t\t\t<span class=\”meta-sep\”></span>\n” ) ?><?php endif; ?>
<span class=”comments-link”><?php comments_popup_link( __( ‘Leave a comment’, $themeName ), __( ‘1 Comment’, $themeName ), __( ‘% Comments’, $themeName ) ) ?></span>
</div><!– #entry-utility –>

 
 

コメントを残す