I want to automatically add a banner on the bottom of ‘News’ entries that have specific categories assigned to them. This all works just fine, but when articles have multiple categories assigned to them that both corresond with the conditional, the banner shows equal amount of times.
The code below (from within weblog:entries tags) then would show “Showing bannerShowing banner” for entries that would have both category 33 and 37 attached to it.
{if weblog=="News"}
{categories}
{if category_id=="33" || category_id=="37"}
Showing banner
{/if}
{/categories}
{/if}
Is there any way to display only once?