[wp-hackers] Exclude Categories From The Loop

Matt speedboxer at gmail.com
Fri Oct 5 05:49:26 GMT 2007


There's a filter "list_cats_exclusions" which will exclude cats from
get_category, will this effect the loop?

On 10/4/07, Stephane Daury <wordpress at tekartist.org> wrote:
>
>
> I since the_category() doesn't support exclusion, you could get
> creative with get_categories(), which does.
> Get an array from get_categories() with the desired categories
> excluded, then compare the result of get_the_category() to it.
>
> Not the most efficient I'm sure, but it should work. and you can make
> a function in your plugin out of it.
>
> Stephane
>
>
>
> On Oct 04, 2007, at 22:37, Matt wrote:
>
> > Is it possible to exclude certain catgories from displaying in the
> > loop,
> > with a plugin?
> >
> > Thanks,
> > --
> > Matt (speedboxer at gmail.com)
> > http://mattsblog.ca/
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Matt (speedboxer at gmail.com)
http://mattsblog.ca/


More information about the wp-hackers mailing list