Support » Fixing WordPress » How to Add after every certain category

  • Hi, I’m using plugin “Category Icon” to display one of my category page as thumbnails, 5 in a row, I wish to add a HR line in every new start row, is there anyway I can do that?

    I’m using this code right now

    if (is_category('profiled-clients')){
    	 if (function_exists('put_cat_icons'))
    
    		foreach(get_categories("orderby=name&order=ASC&child_of=6") as $category) {
    			echo '<div class="galleryEntry">';
    			echo '<a href="' . get_category_link( $category->cat_ID) . '">';
    			echo ' '.get_cat_icon("link=false&echo=false&cat=".$category->cat_ID).''.$category->cat_name.'';
    			echo '</a></div>';
    		}

    Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • if (is_category('profiled-clients')){
    	 if (function_exists('put_cat_icons'))
    
    		foreach(get_categories("orderby=name&order=ASC&child_of=6") as $category) {
    			echo '<div class="galleryEntry">';
    			echo '<a href="' . get_category_link( $category->cat_ID) . '">';
    			echo ' '.get_cat_icon("link=false&echo=false&cat=".$category->cat_ID).''.$category->cat_name.'';
    			echo '</a>';
                            echo '<hr size="1" color="#DEDEDE" noshade/>'
                            echo '</div>';
    		}

    Change size and color of HR according to your choice.

    Hi Chinmoy,

    wouldn’t this give a HR to every image rather than every 5?
    thanks for your reply

    BOD

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Add after every certain category’ is closed to new replies.