WordPress.org

Ready to get started?Download WordPress

Forums

Category Icons
[resolved] Category page, now only cat icon displayed, how to avoid this? (5 posts)

  1. rafamontoya
    Member
    Posted 1 year ago #

    2.1.2 version comes with this Bug corrected : "in the category page, only that category icon is displayed in front of the title if the post has more than one category."
    It really wasn't a bug for me and I need to go back to the old behaviour.
    How to override it?
    Thanks in advance.
    Rafa

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

  2. submarine
    Member
    Plugin Author

    Posted 1 year ago #

    Why not go back to 2.1.1 ?
    You can download the version you want here : http://wordpress.org/extend/plugins/category-icons/developers/

    If I find some time, I'll add an option in the panel settings to display only the category icon of the category page or not.

  3. rafamontoya
    Member
    Posted 1 year ago #

    Thanks submarine! That would be great!

    In the meantime, do you know which are the code lines that make that change? ("now in the category page, only that category icon is displayed in front of the title if the post has more than one category.")

    Thanks (a lot) in advance!

    BR,

    Rafa

  4. submarine
    Member
    Plugin Author

    Posted 1 year ago #

    I think that's :

    if (is_category() AND in_the_loop()) {
    		$cat = get_query_var('cat');
    		$category=get_category($cat);
    		$p['cat'][]=$category->cat_ID;
    	}
    	else {
  5. rafamontoya
    Member
    Posted 1 year ago #

    Thanks so much submarine!
    You are totally right!
    Now it is solved.
    BR,
    Rafa

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic