WordPressいまどこ
<?php if ( is_home() ) : ?>
home
<?php elseif ( is_page() ) : ?>
page
<?php elseif ( is_single() ) : ?>
single
<?php else : ?>
archive -
<?php if ( in_category(7) ) : ?>
category 7
<?php else : ?>
category 1-6
<?php endif; ?>
<?php endif; ?>
home
<?php elseif ( is_page() ) : ?>
page
<?php elseif ( is_single() ) : ?>
single
<?php else : ?>
archive -
<?php if ( in_category(7) ) : ?>
category 7
<?php else : ?>
category 1-6
<?php endif; ?>
<?php endif; ?>