Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Doodlebee

    (@doodlebee)

    Nevermind. Figured it out.

    In the template file that you copy to your theme file (in the plugin, it’s under templates/default.php), you just need to add the following after the “Show Category Link” part:

    $lcp_display_output .= category_description( $this->catlist->get_category_id() );

    Bang. Description shows up.

    Thanks anyway!

    Plugin Author Fernando Briano

    (@fernandobt)

    I’m wondering if I should add a parameter to show the Category description. What happens when you have several categories?
    Like:
    [catlist numberposts=20 catlink=yes id=1,2]
    This will show the link to both categories separated by a comma. If I wanted to add the description, should the titles be inside an unordered list and a list item for each category to include the title and description?

    Thread Starter Doodlebee

    (@doodlebee)

    Well, right now, I’m using it on a site for a client, and he has one page with hundreds of articles split into individual categories Each post is only part of *one* category, so it shows the title with the category description belonging to that category under it. I would *guess* that if a post belonged to multiple categories, then the post would just show up, repeated, under the next category? I don’t know. Right now it’s working perfectly fine, though. I think what you’ve got there would work perfectly well. (in my case, though, I’m using the shortcode multiple times, because the client has something separating each category, so I’ve got a shortcode in place for each one so I can pop that thing in between them)

    I *do* think it would be nice to be able to add a class for the category name. I just tried using the catlist_class, and it didn’t apply the class anywhere – I don’t know if that’s a bug or what (but I worked around it) but anyway… hope that helps somehow!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category Description?’ is closed to new replies.