So I have this piece of code that pulls some category names from an array... I want to put the categories where it will show two categories, and then a line break, and then two more categories.. Using the code in and around, would it be possible to make a line break after two categories are shown. {if $pagename eq 'published' || $pagename eq 'upcoming'} {******Get the parent category******} {assign var=requested_cat value=$request_category} {* if story page - set the story's category to this *} {if $pagename eq 'story'} {assign var=requested_cat value='sub'} {/if} {assign var=mainCatStr value=''} {assign var=parentCat value=-1} {section name=thecat loop=$cat_array} {if $cat_array[thecat].safename eq $requested_cat} {if $cat_array[thecat].parent neq 0} {assign var=parentCat value=$cat_array[thecat].parent} {assign var=mainCatStr value=$cat_array[$parentCat].safename} {else} {assign var=parentCat value=$cat_array[thecat].auto_id} {assign var=mainCatStr value=$cat_array[thecat].safename} {/if} {/if} {/section} {********* Displaying the Main categories *******************} <div style="border-bottom:1px solid #ccc;padding-bottom:4px"> {section name=thecat loop=$cat_array} {if $cat_array[thecat].parent eq 0} {if $cat_array[thecat].safename eq $requested_cat || $cat_array[thecat].auto_id eq $parentCat} [B][COLOR="Red"]<a href="{$URL_maincategory, $cat_array[thecat].safename}" class="current">{$cat_array[thecat].name}</a>[/COLOR][/B] {elseif $requested_cat eq "" && $cat_array[thecat].auto_id eq 0} [B][COLOR="Red"]<a href="{$URL_maincategory, $cat_array[thecat].safename}" class="current">{$cat_array[thecat].name}</a>[/COLOR][/B] {else} [B][COLOR="Red"]<a href="{$URL_maincategory, $cat_array[thecat].safename}">{$cat_array[thecat].name}</a>[/COLOR][/B] {/if} {/if} {/section}</div> <br/> {********* Displaying the Sub categories *******************} <span> {if $parentCat gt 0} <ul> <div style="border-bottom:1px solid #ccc;padding-bottom:4px"> {if $requested_cat eq $mainCatStr} {else} <li><a href="{$URL_maincategory, $mainCatStr}">{#PLIGG_Visual_RSS_All#}</a></li> {/if} {section name=thecat loop=$cat_array} {if $cat_array[thecat].parent eq $parentCat} {if $cat_array[thecat].safename eq $requested_cat} <li><a href="{$cat_url}{$cat_array[thecat].safename}" class="current">{$cat_array[thecat].name}</a></li> {else} <li><a href="{$cat_url}{$cat_array[thecat].safename}">{$cat_array[thecat].name}</a></li> {/if} {/if} {/section} </div> </ul> {/if}</span> {elseif $pagename neq 'submit'} {********* Displaying the Main categories *******************} <div style="border-bottom:1px solid #ccc;padding-bottom:4px"> {section name=thecat loop=$cat_array} {if $cat_array[thecat].parent eq 0} <a href="{$URL_maincategory, $cat_array[thecat].safename}">{$cat_array[thecat].name}</a> {/if} {/section} Code (markup): Shouldn't I be able to take $cat_array[thecat].safename and tell it to insert a line break after 2 categories are displayed?