ryan at boren.nu
Wed Jan 4 00:02:01 GMT 2006
On Tue, 2006-01-03 at 18:53 -0500, Austin Matzko wrote:
> On 1/3/06, Ryan Boren <ryan at boren.nu> wrote:
> > Plus, these are the sort of things that make plugins so
> > fragile to core changes. If we need to add API, let's add API instead
> > of digging in the guts of WP.
> The codex has sample code using $cache_categories, so how would one
> know not to use it? http://codex.wordpress.org/Category_Templates
Good grief. That never should have been documented and needs to change.
> > What method was being used in 1.5 that is no longer working? Can you
> > not use get_queried_object_id() or get_query_var('cat')?
> I need an array of the categories. The hierarchy, ids, etc. that
> $cache_categories provided was nice, too. I'd be happy to use a better
You can work with get_all_category_ids(), get_category(), and
get_category_children(). We should probably add get_categories() that
works similarly to get_pages().
More information about the wp-hackers