The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End wp_list_categories with category description

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #34994

    Hi everyone,

    I’m working on displaying the first level child categories of a parent category in WordPress & also include the category description.

    My code looks as follows, but I’m stuck searching for a solution to include the description:

    This outputs each category in an li. It would be great to find a way to echo the description for each category below the li in a p tag.

    I appreciate any suggestions.


    Using this, which seems to work pretty well…

    foreach ($categories as $cat) {
    echo "
  • ".$cat->cat_name."
  • ";
    } ?>
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.