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.

Category Issue

July 28, 2014 4:16pm

Subscribe [3]
  • #1 / Jul 28, 2014 4:16pm

    Ed Hall

    17 posts

    On one part of my site certain entries show up under a category that they are not apart of.

    EX:

    Category A
    Entry A-1
    Entry A-2
    etc

    Category B
    Entry A-1
    Entry B-1

    I’ve doubled checked the entry and it only has the category it’s supposed to be in checked yet it shows up in other areas. I use the same EE Code to display both categories.

    I can’t link to the items cause some reason they are blacklisted (it’s a non-profit site fyi)

    The code used:

    {exp:channel:entries channel="events2" orderby="title" sort="asc" paginate="bottom" limit="8"}
    <!-- Article standard -->
            <div class="article-standard">
                <div class="post-image">
                    {image}{image:image}
                    <ol class="social-links">
                        <li><a href="http://{title_permalink="><i class="icon-link"></i></a></li>
                    </ol>
      {/image}
                </div>
                <div class="entry-content">
                    <h2 class="entry-title"><a href="http://{title_permalink=">{title}</a></h2>
                    <div class="entry-meta">
                        <div class="description-em">
                            <span class="by-category">{categories backspace="2"}{category_name}, {/categories}</span>
     
                        </div>
                    </div>
    {exp:trunchtml chars="128" inline="..." ending="<a href='{title_permalink='v2/event'}' class='read-more'>Read More</a>"}
    {content_summary}
    {/exp:trunchtml}
                       
          {/exp:channel:entries}

    I hope this all makes sense. I can’t seem to find a solution to this.

  • #2 / Jul 29, 2014 4:19am

    Giraffentoast

    152 posts

    If you’re filtering entries by category, shouldn’t you be using the category parameter?

    {exp:channel:entries channel="events2" category="1"}
  • #3 / Jul 29, 2014 8:30am

    Boyink!

    5011 posts

    Not if the template is being loaded at a category URL..then the filtering would be dynamic.

  • #4 / Jul 29, 2014 8:41am

    Giraffentoast

    152 posts

    True.

    It will come down to testing I suppose. Delete all the secondary markup in that loop, set a category parameter and dynamic=“no” and see what happens. Narrow things down.

  • #5 / Jul 29, 2014 11:59pm

    Ed Hall

    17 posts

    Ok I’ve tried to narrow it down and it makes me even more stumped.

    I added the particular categories and when I do that only the entry belonging to that category show. Dynamic had no effect.

    Here are some links to to show exactly what I mean

    http://192.163.248.32/index.php/v2/events/category/indigogo
    http://192.163.248.32/index.php/v2/events/category/indigoball

    As you would see under Indigogo only the Indigogo entry shows, however under the IndigoBall both IndigoBall and Indigogo show up.

    The indigogo entry only has Indigogo category selected.

    Considering that it’s all called from the same code I’m even more baffled after adjusting the code to display only certain categories.

  • #6 / Jul 30, 2014 4:28am

    Giraffentoast

    152 posts

    Could you post the loop you’re using?
    Plus a screenshot of your categories?

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

ExpressionEngine News!

#eecms, #events, #releases