I hope someone can help me with the following.
I have a portfolio page that displays thumbnail images of all of my work entries and the categories they belong to. The problem I have is some of them have more than one category assigned to them so they are displaying more than once on the page. Is there a way of ensuring they display only once?
Here is my code:
{exp:channel:entries channel="work" orderby="date" sort="asc" }
{categories}
<figure class="{category_name}">
<a href="http://project.html" class="thumb">{work_image_1}</a>
<figcaption>
<a href="http://project.html"><h3 class="heading">{title}</h3></a>
<div class="portfolio-cat">
<a href="#">{category_name}</a>,
</div>
</figcaption>
</figure>
{/categories}
{/exp:channel:entries}Many thanks in advance.