WordPress.org

Support

Support » How-To and Troubleshooting » Index & wp_list_categories()

Index & wp_list_categories()

  • Hi,

    I’m fiddling around with wp_list_categories() and couldn’t figure out how to do something I really want.
    I want to make a parent category ‘review’ with children of that named ‘a’, ‘b’, ‘c’, etc. etc. These letter also will get children. Say ‘Buffy’ for B.

    Now I want to create and Index.

    A
    -Andromeda
    B
    -Buffy
    C
    -Charmed

    This should be possible. But I don’t want A, B, C, etc. etc. linked to their respective archives. How do I manage this?

Viewing 1 replies (of 1 total)
  • I’m currently doing it this way, but it should be easier 🙂

    <?php wp_list_categories('title_li=<h4>' . __('#') . '</h4>&orderby=name&hide_empty=0&show_count=1&child_of=107'); ?>
    <?php wp_list_categories('title_li=<h4>' . __('A') . '</h4>&orderby=name&hide_empty=0&show_count=1&child_of=108'); ?>
    <?php wp_list_categories('title_li=<h4>' . __('B') . '</h4>&orderby=name&hide_empty=0&show_count=1&child_of=109'); ?>
    <?php wp_list_categories('title_li=<h4>' . __('C') . '</h4>&orderby=name&hide_empty=0&show_count=1&child_of=117'); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Index & wp_list_categories()’ is closed to new replies.
Skip to toolbar