I just rearranged the infrastructure of the site I’m building to make things more efficient, and moved the custom fields from one of my channels into custom category fields. The problem is my conditionals no longer work. It works with the standard category fields, just not the custom ones.
This is my code:
{categories}
{if web_site_url}<a href="http://{web_site_url}">/images/icons/home.png</a>{/if}
{if facebook_url}<a href="http://{facebook_url}">/images/icons/Facebook_64.png</a>{/if}
{/categories}If I remove the if statement, it works, but with the if statement in there, nothing displays. I also tried {if web_site_url != ""}, to no avail.
I found an old thread about this same thing, and the person was directed to submit a bug report. That thread was several years old and closed - hopefully there’s a solution?