How to suffix the cat description to list child cats (1 post)

  1. I like screenshots
    Posted 2 years ago #

    I have this piece of code I have in my archive.php that lists the child cats of the current parent cat... But now i'd like the cat descriptions suffixed on to the ends of the child cat list.

    Thanks heaps, Pete

        // check if the page is viewed is a category page.
    if (is_category())
    $cur_cat = get_query_var('cat');
        if ($cur_cat)
            $new_cats = wp_list_categories('echo=false&child_of=' . $cur_cat . '&depth=1&title_li=&&show_count=1&hide_empty=0');
            echo '<ul>' . $new_cats . '</ul>';

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by I like screenshots
  • This topic is not resolved
  • WordPress version: 3.6