Skip to content

Commit

Permalink
固定ページにカテゴリー関係の要素を表示しないように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed May 2, 2020
1 parent 1248f7d commit 2f863cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tmp/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<?php endif; ?>

<?php //タイトル上のカテゴリー・タグ
if (is_category_tag_display_position_title_top()) {
if (is_category_tag_display_position_title_top() && is_single()) {
get_template_part('tmp/categories-tags');
} ?>

Expand Down Expand Up @@ -90,7 +90,7 @@
get_template_part('tmp/date-tags'); ?>

<?php //本文上のカテゴリー・タグ
if (is_category_tag_display_position_content_top()) {
if (is_category_tag_display_position_content_top() && is_single()) {
get_template_part('tmp/categories-tags');
} ?>

Expand Down Expand Up @@ -148,7 +148,7 @@
} ?>

<?php //本文下のカテゴリー・タグ
if (is_category_tag_display_position_content_bottom()) {
if (is_category_tag_display_position_content_bottom() && is_single()) {
get_template_part('tmp/categories-tags');
} ?>

Expand Down

0 comments on commit 2f863cc

Please sign in to comment.