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.

Channel loop not working with one specific category

January 03, 2013 12:12pm

Subscribe [1]
  • #1 / Jan 03, 2013 12:12pm

    Mike Stecker

    6 posts

    Here is my code:

    <div class="page-header">
        <h1>Category: <small>{segment_2_category_name}</small></h1>
    </div>
    <div id="feed" class="mosaic" data-cat-id="{segment_2_category_id}" data-cat="{segment_2}">
        {exp:channel:entries channel="items" limit="30" paginate_base="explore/{segment_2}/p" category="{segment_2_category_id}"}
        {exp:ce_cache:it id="feed_item_{entry_id}" global="yes" tags="item|feed"}{embed="site_inc/_feed_check" theentryid="{entry_id}" itemname="{url_title}" itemuser="{username}" itemuserid="{author_id}" gridsize="span3"}{/exp:ce_cache:it}
        {paginate}
        {exp:string:set name="pagination_cat"}
            <nav id="feed-pager">
            {if next_page}<a href="http://{auto_path}%22id=%22next" class="next js_hide_next">Next Page</a>{/if}</nav>
        {/exp:string:set}
        {/paginate}
        {/exp:channel:entries}
    </div>

    This code works on every category on my site except for one. I can’t seem to figure out why it is breaking for this one particular category but if anyone has any ideas, I’m all ears! Even on the page with the category that doesn’t work, I get the proper information displayed outside the loop (category title & id), but the loop seems to be broken.

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

ExpressionEngine News!

#eecms, #events, #releases