ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

prevent entries from displaying more than once

September 05, 2014 11:22am

Subscribe [2]
  • #1 / Sep 05, 2014 11:22am

    mja388

    6 posts

    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.

  • #2 / Sep 15, 2014 6:49am

    Boyink!

    5011 posts

    Did you find a solution here?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases