Hola SIdepost

function excludeCat($query) {
if ( $query->is_home ) {
$query->set('cat', '-8,-12');
}
return $query;
}
add_filter('pre_get_posts', 'excludeCat');
Scroll al inicio