I have the following code from the developer of my WordPress site and if possible I’d like to make a revision myself.
$list .= '<div class="fc_right">
<h3>'.$headline.'</h3>
<div class="fc_caption">'.$caption.'</div>
<a href="'.$url.'">More »</a>
</div><div class="clear"></div>
</li>';
I just want to add an if statement in there that if $url is blank, then don’t print the More>> link.
Let me know if I need to provide more context of the code, I wanted to keep it brief for you all if possible.
1 Answer