Hi,
Is it possible to only show the category only once if returned.
So if there is a list of categories that are gathered from a list of entries, but then only show it once if present - or is there a better way than I am doing now?
Here is the page you can see list of categories, but only need to show once if it exists
http://www.pexa.co.uk/en/testing/
{exp:channel:entries channel='sectors' orderby="title" sort="asc" status="open|hidden" disable="category_fields|member_data|pagination"}
<div class="{url_title}">
<h1><a href="http://{site_url_wlc}{segment_1}/{url_title}">{title}{/if}</a></h1>
{cf_image}<a href="http://{title_permalink">{exp:ce_img:single src="{mt_image}" width="118" max="118" crop="no" allow_scale_larger="yes" alt="{title}"}</a>{/cf_image}
<div class="desc">{cf_description_{language_code}}</div>
<ul>
{exp:playa:parents field="cf_product_related" order_by="group" sort="asc" disable="category_fields|member_data|pagination"}
{categories limit="1" }<li><a href="http://{site_url_wlc}{segment_1}/{child:url_title}/{category_url_title}">{category_name}</a></li>{/categories}
{/exp:playa:parents}
</ul>
{/exp:channel:entries}