Here’s the code in question:
{exp:weblog:entries disable="member_data|pagination|trackbacks"}
{categories}
{if category_name == "about"}
/_assets/pic_about_1.jpg
{if:elseif category_name == "tickets"}
/_assets/pic_tickets_1.jpg
{if:elseif category_name == "support"}
/_assets/pic_support_1.jpg
{if:elseif category_name == "touring"}
/_assets/pic_touring_1.jpg
{if:elseif category_name == "press"}
/_assets/pic_press_1.jpg
{if:elseif category_name == "productions"}
/_assets/pic_about_1.jpg
{if:else}
/_assets/pic_about_1.jpg
{/if}
{/categories}
{/exp:weblog:entries}So basically what I’m trying to do is say “if the category is x, display this picture. If there isn’t a category assigned, display this one other one.”
It’s working for all the pages that do have categories assigned, just not the unassigned ones.
Could this be a bigger problem with how I have my categories setup?