[wp-hackers] How can I filter on post count for categories?
autremonde75 at gmail.com
Thu Jun 4 06:23:28 GMT 2009
Ok so I looked at this. My issue isn't really to count the number of items
but rather to have my count took into consideration. I haven't managed to
plug on a place where I can modify on the fly the number when a page
containing the category list widget is generated.
----- Original Message -----
From: "Austin Matzko" <if.website at gmail.com>
To: <wp-hackers at lists.automattic.com>
Sent: Wednesday, June 03, 2009 7:21 PM
Subject: Re: [wp-hackers] How can I filter on post count for categories?
On Wed, Jun 3, 2009 at 12:16 PM, L'Autre Monde <autremonde75 at gmail.com>
> I am currently writing a plugin which creates a custom post type. When the
> category list widget is displayed, the number of posts per categories only
> includes the posts with a post type of "post". Also, if a category only
> has the customer post type, it isn't listed as it is seen as an empty one.
> I have tried to filter on the get_category and list_cats to modify the
> category->count for the category but it doesn't work :(
Try counting the number of items in the array returned by
wp-hackers mailing list
wp-hackers at lists.automattic.com
More information about the wp-hackers