Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
sachinjain007
tagDiv Member

Thanks Simon C.

sachinjain007
tagDiv Member

Hi

I found the solution of this without using any plugin

Insert the code in function.php file

function exclude_category($query) {
if ( $query->is_home() ) {
$query->set('cat', '-xx');
}
return $query;
}
add_filter('pre_get_posts', 'exclude_category');

Replace xx with category ID

sachinjain007
tagDiv Member

Hi Catalin

Website URL ByteNbit

There is my post “Use Quora Without Login” associated with poster Category which is shown under Latest Article.

I want to exclude all posts which are under “poster Category” from showing under Latest Article.

Thanks

Viewing 3 posts - 1 through 3 (of 3 total)