Show all posts of all categories but excluding a category on custom blog page with pagination of my theme
If you take a look at the category parameters of WP_Query, you’ll see that you can use either cat=-12 or category__not_in’ => 12 to exclude a category with ID 12 in your custom query. I just also want to point out a few things here. showposts is depreciated, you should be using posts_per_page. Also ‘showposts=6’ … Read more