Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter skwerlzu

    (@skwerlzu)

    Basically I have a theme that give a list of associated categories with each post. Theme is “Editor” found here EDITOR

    When showing a post or a search it lists the associated categories. I am trying to get the Icon to show for each. Any chance you could give me a hand?

    Thread Starter skwerlzu

    (@skwerlzu)

    PLugin used : Simple Category Icons
    Theme Used: Editor

    Here is the code I am trying in the “content-meta.php”

    <?php if ( has_category() ) { ?>
    
    			<li class="meta-cat"><?php the_icon('size=small') . the_category ( ' <br> ' ); ?></li>
    		<?php } ?>
    		<?php $posttags = get_the_tags(); if ( $posttags ) { ?>
    			<li class="meta-tag"><?php the_tags( '' ); ?></li>
    		<?php } ?>

    Here is the result I am getting.
    https://lyman-ec.com/public/cat-icon-issue.jpg

    What I am trying to accomplish is the correct category icon in front of the category name.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using with the_category’ is closed to new replies.