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 archive tag

May 10, 2010 6:52pm

Subscribe [2]
  • #1 / May 10, 2010 6:52pm

    c_k

    98 posts

    I’m using the weblog categories archive tag, but it is not working properly.

    {exp:weblog:category_archive weblog="default_site" style="linear"}
    
    {categories}
    <h3>{category_name}</h3>
    <p>{if category_description}{category_description}{/if}<br />
    {/categories}</p>
    
    <p>{entry_titles}<br />
    <a href="http://{path=SITE_INDEX}">{title}</a></p>
    
    <p>{/entry_titles}</p>
    
    <p>{/exp:weblog:category_archive}

    I originally had it as a list of each entry, but I wanted to have the categories listed above the entries. But the code only displays the category_names and not the entries. Any reason why?

  • #2 / May 11, 2010 1:47am

    John Henry Donovan

    12339 posts

    c_k,

    Things to check are:

    Is the short name of your weblog correct?
    Are you using any custom statuses?
    Are your entries in the future?

  • #3 / May 11, 2010 2:37am

    c_k

    98 posts

    I checked those items. The only thing is I am using a custom status. I am operating a system with multiple sites, so there was no status available for my second site, except the one custom status that I had to create.

    Does it not work with a custom status?

  • #4 / May 11, 2010 2:46am

    John Henry Donovan

    12339 posts

    c_k,

    Does it not work with a custom status?

    Yes it does but you will have to declare it for it to show up. I usually use the following and that covers me for any new custom status I have to make without going back to the templates.

    {exp:weblog:category_archive weblog="default_site" style="linear" status="not closed"}
  • #5 / May 11, 2010 3:02am

    c_k

    98 posts

    ah ok. Thanks, got it working!

  • #6 / May 11, 2010 3:58am

    John Henry Donovan

    12339 posts

    No problems. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases