Depth argument ignore

Forums Forums Menus Depth argument ignore

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #80
    Anonymous
    Member

    Why is the depth argument for wp_list_categories ignored? Am I using it correctly? I want to show 1 level of all the children of category 40 (no additional cascading to the right).

    wp_list_categories(’child_of=40&depth=1&title_li=‘ . __(’Heading’) . ‘‘)

    #2347

    I’ve never tried doing that before. The depth should display correctly, but I’m wondering if it is being messed up by the fact that you have a depth of 1, despite trying to display the contents of a category which is at that depth. Perhaps setting it to 2 may help?

    If you find an answer I’d love to hear what it is.

    #2348

    Ah, I didn’t notice that. It has been present for pages in previous versions but not categories it seems.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.