w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I show all posts but exclude a specific category on wordpress?

I found the answer! You had to do replace

query_posts( $query_string . '&ignore_sticky_posts=1' );

with

query_posts( $query_string .
'&ignore_sticky_posts=1&cat=-' . get_cat_ID( 'Blogs' ) );




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.