I am using the example Relationships code which works but what I would like to do instead of showing the names of the Pizza shops is just show how many shops the Pizza is available at.
{exp:channel:entries channel="pizzas"}
<h2>{title}</h2>
<p>{description}</p>
<p>{ingredients}</p>
<h3>Where can I find this pizza?</h3>
{parents field="specialty_pizzas"}
<strong>{parents:title}</strong>: <br />
{parents:phone} <br />
<p>{parents:address}</p>
{/parents}
{/exp:channel:entries}
I have tried this, but it does not appear to work, any hints?
{exp:channel:entries channel="pizzas"}
<h2>{title}</h2>
<p>{description}</p>
<p>{ingredients}</p>
<h3>How many restaurants serve this pizza?</h3>
{parents field="specialty_pizzas"}
{parents:speciality_pizzas:total_results}
{/parents}
{/exp:channel:entries}