I have searched for a few hours on this topic. I have a set of entries I want to display, but depending upon their category, I want it to use a different url path. How do I make this work?
{exp:weblog:entries weblog="articles" limit="4"}
{if category == "221"}
<a href="http://{title_permalink=">{image}</a>
{if:else}
<a href="http://{title_permalink=">{food_front_image}</a>
{/if}
{/exp:weblog:entries}What am I missing here?