Hopefully this will just be a quick one and it maybe staring me in the face but what I want to be able to display a related testimonial of an entry.
If the testimonial has a custom status of Featured, then this will be displayed. If no testimonials have this status set, then it will revert to the latest testimonial added, presumably with a status of Open.
Can anyone help me out on how I can do this. Below is what I thought may do the trick
{if page_related_testimonials}
{page_related_testimonials
channel="testimonials"
status="Featured"
orderby="date"
sort="desc"
limit="2"}
{if status=="Featured"}
{title}
{if:elseif status=="open"}
{title}
{/if}
{/page_related_testimonials}
{/if}