Support » Fixing WordPress » $category data object

  • Hello,

    I’m creating for my blog an Accordion Menu to the categories. I’m making changes on the wp-includes/class.php file.

    At a certain point now, I need to disocver is the current category has any children assigned to it. So I figured that the $category data object would have something I could you for this purpose, but I just don’t seem to find the Doc for this anywhere…

    The same way that “$category->name” gives me the name of the category, is there any list to describe all the information stored under this object?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Might try using the template tag, wp_list_categories():

    if ($anychildren) {
    echo 'found children for category '.$mycat;

    MichaelH: Unfortunately this doesn’t document the actual “category object” that is returned by the function. I’m also looking for the documentation of the returned category object (as well as the post object etc…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘$category data object’ is closed to new replies.