We tried to construct the following piece of code and the nesting of related entries failed.
The goal is to add an “s” to “Practice Leader” only if practice_leader_2 exists. We’ve tried a few other approaches and they all don’t seem to be supported.
In a case like this is there some other way to evaluate the condition?
Thanks in advance for any input.
{related_entries id="practice_leader"}
<div class="p-leader-title">Practice Leader{related_entries id="practice_leader"}{if no_related_entries}{/if}s{/related_entries}</div>
{if no_related_entries}
<div class="p-leader-title">Practice Professionals</div>
<div class="p-leader-detail"><a href="http://{path=ourpeople/practicearea/{segment_2}}">View professionals associated with_this practice area</a></div>
{/if}
<div class="p-leader-detail"><a href="http://{path=ourpeople/bio/{url_title}}">{people_name}</a>
<span>{people_title}</span>{embed="includes/phone" entry_id="{entry_id}"}
<a href="mailto:{people_email}">{people_email}</a>
{/related_entries}