[wordpress]カテゴリの条件分岐
●普通
<?php if(is_category()): ?>
処理
<?php endif; ?>
●特定のカテゴリのみ
<?php if(is_category(ID)): ?>
処理
<?php endif; ?>
●複数
<?php if(is_category(array(ID,ID,'name','slug'))): ?>
処理
<?php endif; ?>
続きを読む">
WEB関連(主にコーディング、たまにデザイン)の備忘録。趣味も入ったり。
●普通
<?php if(is_category()): ?>
処理
<?php endif; ?>
●特定のカテゴリのみ
<?php if(is_category(ID)): ?>
処理
<?php endif; ?>
●複数
<?php if(is_category(array(ID,ID,'name','slug'))): ?>
処理
<?php endif; ?>