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.

"disable='categories'" not working on entries tag?

February 13, 2011 6:06pm

Subscribe [3]
  • #1 / Feb 13, 2011 6:06pm

    lukemartin

    2 posts

    Hi

    I have a “recent posts” block on a site I’m working on. I want it to display the most recent 5 posts from a certain channel, regardless of the category we’re currently in. So I understand I need:

    <ul>
      {exp:channel:entries channel="blog" limit="5" disable="categories"}
        <li>{title}</li>
      {/exp:channel:entries}
    </ul>

    However it doesn’t seem to be working. The posts displayed are still affected by navigation through categories. Am I doing something very wrong? 😊

  • #2 / Feb 14, 2011 4:41am

    John Henry Donovan

    12339 posts

    lukemartin,

    Welcome to the forums 😊

    Try the dynamic= parameter

    <ul>
      {exp:channel:entries channel="blog" limit="5" dynamic="no"}
        <li>{title}</li>
      {/exp:channel:entries}
    </ul>
  • #3 / Feb 14, 2011 5:23am

    lukemartin

    2 posts

    Perfect, thanks! 😊

  • #4 / Feb 14, 2011 9:53am

    Sue Crocker

    26054 posts

    Glad John was able to help. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases