Support » Plugin: Category and Page Icons » Move the icon to the end of the category

Viewing 1 replies (of 1 total)
  • neookano

    (@neookano)

    You can put icon manually. Like this:

    <ul>
    	<?php
    	$aCategories = get_categories(array(
    		'type' => 'post',
    		'taxonomy' => 'category'
    	));
        foreach($aCategories as $value){ ?>
    		<li>
    			<a href="<?php get_category_link($value->{'term_id'}) ?>">
    				<?php echo $value->{'name'} ?>
    				<img src="<?php echo $value->{'term_icon'} ?>">
    			</a>
    		</li>
        <?php } ?>
    </ul>

Viewing 1 replies (of 1 total)
  • The topic ‘Move the icon to the end of the category’ is closed to new replies.