WordPress.org

Ready to get started?Download WordPress

Forums

Display Category Descriptions In Sidebar (4 posts)

  1. Copernicus
    Member
    Posted 8 years ago #

    Hello, this seems basic but I couldn't find an answer in my searches...

    I would like to have the sidebar list descriptions along with the category names. So, where it now displays as:

    Category 1
    Category 2
    Category 3
    etc.

    I'd like it to display:

    Category 1
    - Category 1 description
    Category 2
    - Category 2 description
    Category 3
    - Category 3 description

    The only thing I've found is how to set it so that the description is used as the title tag for a linkl nothing about simply displaying the description.

    Any ideas?

  2. tanster
    Member
    Posted 8 years ago #

  3. Copernicus
    Member
    Posted 8 years ago #

    Well, the category description tag (<?php category_description(category); ?>) works great for displaying a description on a page, but I want it as part of the list...

    Currently, my category tag within the sidebar just reads:

    <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 0, 0, 1, 1, 0,'','','','','') ?>

    Since that's generating the list, I don't see how to tweak it to include category descriptions and don't see how I can use <?php category_description(category); ?> to accomplish that goal.

    (Thanks for any & all help, though!)

  4. Copernicus
    Member
    Posted 8 years ago #

    Anyone able to help with this? ...please... :)

Topic Closed

This topic has been closed to new replies.

About this Topic