Forums

[resolved] wp_list_categories() not working... not returning right cats (2 posts)

  1. timh555
    Member
    Posted 2 years ago #

    My categories:

    ID    Name
    1     Tech
    2     Sports
    3        + Baseball
    4        + Football
    5           + Training
    6        + Volleyball

    GOAL:I want to pull out a list of just "Baseball, Football, Volleyball"

    My code:

    <?php wp_list_categories(array('child_of'=>2, depth=>1, style=>'none', hide_empty=>0)); ?>

    What I end up with:
    Training

    This makes no sense... if i change depth to 0, then i see all the children and sub-children... but depth 1 and 2 only show "Training".

    Any ideas?

  2. timh555
    Member
    Posted 2 years ago #

    Wierd... there was something wrong with the "Training" Category. I deleted then added it back and now it works.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.