Cocoon Child: テーマのための関数 (functions.php) に追加
//特定カテゴリーの投稿のトップページ非表示 function exclude_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '-18' ); } } add_action( 'pre_get_posts', 'exclude_category' );
//特定カテゴリーの投稿のトップページ非表示 function exclude_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '-18' ); } } add_action( 'pre_get_posts', 'exclude_category' );