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.

Some categories not showing entries, others do.

April 03, 2012 4:05am

Subscribe [3]
  • #1 / Apr 03, 2012 4:05am

    Embody_Bruce

    76 posts

    http://www.finepluck.co.uk/blog

    I have a channel with 8 posts at the time of writing. The same channel has a dedicated category group with 6 categories. Each channel entry has 1 or more categories added. Each category has at least one channel entry assigned to it.

    Two of my categories (news & permaculture) don’t show the entries assigned to them in the category view. All the others do and both are using exactly the same template code.

    I can’t find out what’s going wrong.

    I’ve tried turning it off and back on again but that hasn’t helped.

    EE: v2.4.0

  • #2 / Apr 04, 2012 10:52am

    Shane Eckert

    7174 posts

    Hey Embody_Bruce,

    I am sorry to hear you are running into this problem.

    Can you compare the two categories? Do they have the same settings as the other categories that are working?

    Is this tied a certain channel? Check that the channels have the same settings as well. This sounds like it could be a permissions issue and checking the channels for differences will help discover that.

    Cheers,

  • #3 / Apr 04, 2012 11:02am

    Embody_Bruce

    76 posts

    Hi Shane

    Single channel, single category group. Nothing out of the ordinary. No differences. Nothing stands out about either of the two categories not working. I’ve tried deleting one and adding it again, no difference.

  • #4 / Apr 05, 2012 7:44am

    Embody_Bruce

    76 posts

    Just added two more categories, courses and events. Courses works, events doesn’t. You can see from the categories listed under the entry that both are associated with it.

    It would be really helpful to get some prompt support for this.

    Cheers

  • #5 / Apr 05, 2012 5:17pm

    Shane Eckert

    7174 posts

    Hey,

    I am sorry about the delay. We have been playing catch-up in support.

    To troubleshoot I think I need some more information.

    Can you show me the URL of the visited page? I just need the part after index.php.

    Can I also have channel entries template code? Would love to see how this is being displayed.

    Once I have those pieces of the puzzle, we can make some progress on this.

    Cheers,

  • #6 / Apr 06, 2012 2:06am

    Embody_Bruce

    76 posts

    Thanks Shane

    I linked to the site above so you can explore the URL’s as you wish. I think that answers your question, so it’s simply blog/category/forest_garden/ as an example of one that’s working and blog/category/news/ for one that isn’t.

    I think the relevant bit of the code is:

    <div id="con_l3_col1">
    
    {exp:channel:category_heading channel="fp_blog"}
    <h3>You are viewing blog posts 
     from the {category_name} category</h3>
    <p>{/exp:channel:category_heading}</p>
    
    <p>{exp:channel:entries channel="fp_blog" orderby="date" status="open" sort="desc" track_views="one" limit="10" paginate="bottom"}</p>
    
    <p><div class="con_date_author"><span class="blue_text">{entry_date format='%d %F %Y'}</span> a post by <a href="http://{profile_path=member}">{author}</a> {edit}</div><br />
    <h1><a href="http://{comment_url_title_auto_path}">{title}</a></h1><br />
    <div class="con_caption">{categories backspace="2"}<a href="/blog/category/{category_url_title}/">{category_name}</a> | {/categories}</div><br />
    <div class="clearit"></div><div class="spacer10x10"></div><div class="clearit"></div><br />
    <div class="img_left"><a href="http://{comment_url_title_auto_path}">{exp:imgsizer:size src="{blog_keyimage}" width="150" alt="{title}}_<img src="{sized}" width="{width}" height="{height}" >_</a>{/exp:imgsizer:size}</div></p><h3>{introduction} <a href="http://{comment_url_title_auto_path}"> More ...</a></h3>
    <p><div class="rule"></div><br />
    {paginate}<br />
    Page {current_page} of {total_pages} pages {pagination_links}<br />
    {/paginate}<br />
    {/exp:channel:entries}</p>
    
    <p></div><!--closes con_l3_col1-->

  • #7 / Apr 09, 2012 2:12pm

    Shane Eckert

    7174 posts

    Hey Embody_Bruce,

    This is so strange. I know I am just repeating what you have already said, but this helps me and it moves the relevant information further down the thread.

    You have two posts, both are in the categories “courses” and “events”.

    http://www.finepluck.co.uk/blog/category/courses/ - works. I see both posts.
    http://www.finepluck.co.uk/blog/category/events/ - does not. Nothing is returned.

    Not expected at all.

    Let’s try using a very basic block of code to display. Please create a brand new template. In that template use a channel entry tag to display posts in a channel based on category, much like you do now but stripped down to the bare minimum. If this still happens after that, then we know it’s not an issue with the code displaying the page.

    Something like this.

    {exp:channel:category_heading channel="fp_blog"}
    <h3>You are viewing blog posts 
     from the {category_name} category</h3>
    <p>{/exp:channel:category_heading}</p>
    
    <p>{exp:channel:entries channel="fp_blog"}<br />
    {title}<br />
    {/exp:channel:entries}

    Thanks,
    Shane

  • #8 / Apr 10, 2012 12:27pm

    DisMedia

    16 posts

    We are running into the same issue.  When creating a new category it doesn’t show the posts.  Other categories pre-upgrade are working fine.  We are using a very basic category page.

  • #9 / Apr 10, 2012 2:33pm

    Embody_Bruce

    76 posts

    Shane.

    I’ve discovered the problem is categories sharing a URL across a MSM. I’ve changed the URL for the site we’ve been looking at and they’re all working. Where did I miss some instruction that category URL’s couldn’t be shared? Anyway, problem solved except for the slightly untidy URL’s for the cat’s in question.

    Thanks for your help.

  • #10 / Apr 10, 2012 3:23pm

    DisMedia

    16 posts

    We fixed our problem as well.  We were having problems with a “category” with same name as our “category group”.  We renamed the category and category urls, all is working again.

  • #11 / Apr 11, 2012 10:41am

    Shane Eckert

    7174 posts

    Hi All,

    Boy, I am away for a bit and everyone goes and solves their cases. 😊

    I am glad to hear it, and glad that you guys are back in business.

    That MSM issue, I should have caught that! I forget about that one sometimes.

    If you guys need anything else, please just let me know by opening a new thread.

    Have a great week!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases