[wp-hackers] Exclude Categories From The Loop

Michael D Adams mikea at turbonet.com
Fri Oct 5 06:54:58 GMT 2007

On Oct 4, 2007, at 7:37 PM, Matt wrote:
> Is it possible to exclude certain catgories from displaying in the  
> loop,
> with a plugin?

Do you mean exclude posts from the loop that belong to a specific  
category?  I don't know if there's a better way to do this now, but  
there's an old plugin by Ryan that can do this.


There's no UI.  Change $cats_to_show to '-28' (or whatever category  
you want to exclude), and remove the is_home reference to get it to  
work everywhere (... or maybe change it to !is_admin...).


More information about the wp-hackers mailing list