Support » Fixing WordPress » wp list categories and description

  • Resolved Jason M Rogers


    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?



Viewing 1 replies (of 1 total)
  • 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

      $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).'' ;
Viewing 1 replies (of 1 total)
  • The topic ‘wp list categories and description’ is closed to new replies.