Just found out category_id isn’t functioning sitewide. Since it’s barely used I didn’t realize it wasn’t working and I’m not sure when it stopped.
I use it in one of my templates with the following:
{exp:channel:entries channel="blog" limit="1" status="open" site="naperville"}
<h2>Recent Blog</h2>
<h3>{if category_id == '28'}<a href="/mystory">{if:else}<a href="/resources/blogs/#reflections" class="{category_id}">{/if}{title}</a></h3>
<p>{blog_description}<br />
by {blog_author}<br />
{exp:word_limit total="30"}<br />
{blog_content}<br />
{/exp:word_limit}<br />
{if category_id == '28'}<a href="/mystory">Read more</a>{if:else}<br />
<a href="/resources/blogs/">Read more</a>{/if}<br />
{/exp:channel:entries}The template is returning {category_id} as the class and every blog is returning the else if my conditionals.
Any idea what could be causing this?