WordPress.org

Ready to get started?Download WordPress

Forums

Index & wp_list_categories() (2 posts)

  1. extatix
    Member
    Posted 4 years ago #

    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?

  2. extatix
    Member
    Posted 4 years ago #

    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'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.