<?php if ( ! in_category(‘N’)) continue; ?> 出典 http://www.shiteki.info/wordpress/custom/276.html#extended