[resolved] wp list categories and description (2 posts)

  1. Jason M Rogers
    Posted 5 years ago #

    Hi there I've used wp_list_categories to show a list of categories on a page

    ie <?php wp_list_categories('title_li=&style=none&exclude=54,797,64,1030,859,1,69,826,937,65&show_count=1'); ?>

    and want to show the description there too. I dont seem to be able figure that out of find it out either, can you help?



  2. Jason M Rogers
    Posted 5 years ago #

    I managed to find something that works, although the styling doesn't seem to and I can't get it to look the way I want so I'm going to use simple html and some copy + paste.

    Anyhow I used some code borrowed from a post about images http://wordpress.org/support/topic/290586?replies=7

      $categories = get_categories('exclude=54,797,61,1108,936,826,1056,937,64,774,775,776,67,69,1030,859,1');
      foreach ($categories as $cat) {
      echo '<b><a href="'.get_category_link( $cat->cat_ID ).'">'.$cat->cat_name.'</a></b>'. category_description( $cat->cat_ID).'' ;

Topic Closed

This topic has been closed to new replies.

About this Topic