I have a custom entry field that is storing a URL. When I go to embed this field in a link, it embeds an entire link (e.g. <a href=“someurl”>someurl</a>) rather than just the URL.
Here’s the exact code I’m using. The URL is stored in the external_link field. I’ve tried it without the conditionals and get the same problem.
{exp:weblog:entries weblog=“news”}
{if external_link != “”}
<li><a title=”{title}”>{title}</a> - <span>{entry_date format=”%M %d, %Y”}</span></li>
{if:else}
<li><a permalink=“cleanfuel/news” title=”{title}”>{title}</a> - <span>{entry_date format=”%M %d, %Y”}</span></li>
{/if}
{/exp:weblog:entries}
I looked pretty thoroughly through the forums and couldn’t find an answer, but I apologize if if I missed something.
Many, many thanks,
