I’ve got a single template that I’d like to show some different content in a sidebar based on what category someone is on.
{exp:channel:entries channel="pages"}
{if category_id=="41"}
<h4>Related Articles</h4>
<p> {/if}<br />
{/exp:channel:entries}So above, I’d like to show the h4 “Related Articles” if the page that the user is on was assigned to that category.
I’m currently trying to use the category id but that doesn’t work.