Category Icons
[resolved] Show category_description in widget (5 posts)

  1. buymylife
    Posted 3 years ago #

    Howdy -- Many thanks for the awesome plugin. I'm trying to display the category description in the widget. I've tried a few things unsuccessfully... any ideas?


  2. submarine
    Plugin Author

    Posted 3 years ago #


    There is a filter that you could use. Put this in your functions.php :

    function bm_test($list) {
    echo $list;

    The echo displays the widget, but you have to write some code to do what you want to alter the $list.

    Good luck.

  3. buymylife
    Posted 3 years ago #

    Thank you for the response Submarine.

    Quick question/clarification: I can use your function to echo whatever I want after the entire widget, but I'm trying to echo each category's description in the respective cat-item li... so each li within the widget displays the thumbnail, the category title, and the category description.

    Any leads? Seems like it should be straightforward, I'm just having trouble making it work. Thanks again, really appreciate any help...

  4. submarine
    Plugin Author

    Posted 3 years ago #

    Like I said, you need to do a parser, or, simpler, do your own widget. Maybe this'll be a good start : http://www.category-icons.com/2010/02/how-to-display-category-icons-side-by-side/
    You can also read this : http://www.category-icons.com/2009/06/how-to-display-a-list-of-the-categories/

    You just have to add category_description and get_cat_name next to get_cat_icon.

  5. submarine
    Plugin Author

    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Category Icons
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.