将其放入显示日期的文件中(假设您使用get_the_date):
$month = date( \'F\' );
$categoryIds = array();
$bannedMonth = \'September\';
$bannedCategory = 13;
$categoryArray = get_the_category();
foreach ( $categoryArray as $categoryObj ) {
array_push( $categoryIds, $categoryObj->term_id );
}
if ( $month != $bannedMonth && !in_array( $bannedCategory, $categoryIds ) ) {
echo get_the_date();
}