Appreciated
Have an excellent day
I need to hide the posts in the category files. I just want to see only the category page, without the related entries and paging-navigation.
Could you please supply me with a code for that purpose?
I was already exploring in the forum and I found this but I do not know how to accommodate my needs
add_filter(‘pre_get_posts’, ‘excludeCat’);
function excludeCat($query) {
if ( $query->is_home ) {
$query->set(‘cat’, ‘-3,-5,-23’);
}
return $query;
}
First of all, Thanks