WordPress.org

Forums

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

  1. Please Add Screenshots
    Member
    Posted 1 year 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

    <?php
        // 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 1 year ago by Please Add Screenshots
  • This topic is not resolved
  • WordPress version: 3.6