I’m having trouble embedding PHP into a template and having anything on the page render, and I assume it’s because I’m working with a Relationship field.
Just as an example, this works:
{portfolio_projects}
<span class="date"><?php echo("Client A"); ?></span>
{/portfolio_projects}
and this works:
{portfolio_projects}
<span class="date">{portfolio_projects:client_name}</span>
{/portfolio_projects}
but this does not (I just get a blank page with empty html and body tags):
{portfolio_projects}
<span class="date"><?php echo({portfolio_projects:client_name}); ?></span>
{/portfolio_projects}
So I reckon I’m doing something wrong. Help?! (BTW, I’ll be needing to use PHP on my template to do a regex/preg_replace on strings.)