[wp-trac] Re: [WordPress Trac] #2328: Provide structured access to
category list
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 18 21:18:40 GMT 2006
#2328: Provide structured access to category list
-------------------------+--------------------------------------------------
Id: 2328 | Status: new
Component: Template | Modified: Sat Feb 18 21:18:40 2006
Severity: enhancement | Milestone: 2.1
Priority: normal | Version: 2.0.1
Owner: anonymous | Reporter: coppit
-------------------------+--------------------------------------------------
Changes (by davidhouse):
* keywords: categories list list_cats => categories list list_cats bg
|has-patch bg|commit
Comment:
Let me try to sum up what you're asking for here:
* A filter that passes the categories to be outputted in an array so they
can be modified, some removed or whatever
* Access to the exclusions list so you can control which categories are
output and which aren't (although you could theoretically do this by just
removing this from the array that my filter provides)
* Access to the sort order/column parameters
And the resolutions in order:
* My filter. Although you rightfully said that the $categories parameter
is pointless, if you don't pass it in it will be filled from the DB. So if
you pass nothing in then you'll recieve the entire list of categories from
the DB if you hook my filter. You can then remove/modify any you like.
* Filter list_cats_exclusions, as above (although there was a typo in my
above comment, the first parameter to the add_filter call was meant to be
'list_cats_exclusions').
* Start a new bug, as this is completely unrelated to anything so far.
You would have been right to remove the bg|commit tag had the patch not
fixed your problem, but I believe it does, so I'm readding it.
--
Ticket URL: <http://trac.wordpress.org/ticket/2328>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list