add_action( 'pre_get_posts', 'aramagizle' );
function aramagizle( $query )
{
if ( ! $query->is_admin && $query->is_search )
{
$query->set( 'post__not_in', array(1,2,3,4,5) );
}
return $query;
}Bu şekilde deneyebilirsin 1 2 3 4 5 post id
Bu kodu postype'larda kullanabilir miyim ? ACF ile oluşturduğum posttype'lar var.