In the following example, I am getting custom field data to show correctly, but at the end of the entries, I get an extra “[]”, as shown below. How would I use a conditional (or would I) to make sure that info is displayed only if it exists for a custom field?
CODE:
<table>
{exp:weblog:entries}
<tr>
<td colspan=“2”>{fitness_article_title}</td>
</tr>
<tr>
<td colspan=“2”>{fitness_article_intro}</td>
</tr>
<tr>
<td align=“left”>[{fitness_article_source}]</td>
<td align=“right”>{fitness_article_url}</td>
</tr>
{/exp:weblog:entries}
</table>
RESULTING OUTPUT:
Title
Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.
[source: ]http://www.source.com] http://www.yahoo.com
Title2
Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.Intro goes here.
[source: ]http://www.source2.com] http://www.google.com
[] <——————- this is shown below the final entry and should not be there.