WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. buymylife
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/category-icons/

  2. submarine
    Member
    Plugin Author

    Posted 1 year ago #

    Hi.

    There is a filter that you could use. Put this in your functions.php :
    add_filter('category_icons_widget','bm_test');

    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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.