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.

Create a template to show entries from particular category

December 14, 2009 7:00am

Subscribe [0]
  • #1 / Dec 14, 2009 7:00am

    MarqueDigital

    33 posts

    I don’t understand why I’m finding this so difficult to do.

    I want to show all entries in a category.

    {exp:weblog:entries weblog="events" limit="10" category="13"}

    I use this code, and despite having around 5 entries assigned to that category I get nothing.

    Now that’s strange.

    The category 13 is in the category group assigned to the weblog ‘events’.

    /index.php/events/learn

    is the URL structure

    Any ideas?

    Also, for debugging I tried listing all my categories using the following code…

    {exp:weblog:categories}
    
    {category_name}
    
    {/exp:weblog:categories}

    This shows nothing, despite me having a category group with 14 categories contained within.

    Would really appreciate some hints and tips on this.

  • #2 / Dec 14, 2009 7:07am

    MarqueDigital

    33 posts

    That always happens. I post something and then find out the answer for myself 5 minutes later.

    The entries in my category were all expired, so I added

    show_expired="yes" show_future_entries="yes"

    to my entries tag, and now it’s working just fine.

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

ExpressionEngine News!

#eecms, #events, #releases