I have a masonry style setup for a portfolio page and would like to allow the client to chose multiple categories per portfolio entry. The issue I'm having is each entry is displaying multiple times in the 'Show All' section when more than one category is being selected.
Here is the basic markup I have for the portfolio section—
{exp:channel:entries channel="projects"}
{categories}
<div class="element clearfix col1-3 portfolio {category_name}">
<a href="{title_permalink='projects/index'}" title="">
<figure><img src="{project_image:project_thumb}"/></figure>
</a>
</div>
{/categories}
{/exp:channel:entries}
Here's an image of what's showing on the 'Show All' section. The two items at the bottom are in more than one category, but I'd only like one to show.—
Thanks in advance.