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.

Exclude current entry from channel entries orderby="random"

November 05, 2012 2:55pm

Subscribe [2]
  • #1 / Nov 05, 2012 2:55pm

    niallthompson

    17 posts

    Hello,

    I am trying to exclude the current entry from a list of entries ordered randomly.

    Any thoughts about how best to do this?

    Current code is:

    {exp:channel:entries channel="projects" disable="categories|category-fields|member-data|pagination" limit="5" orderby="random"}
    
    {/exp:channel:entries}
  • #2 / Nov 05, 2012 3:57pm

    niallthompson

    17 posts

    url_title="not {segment_3}"
  • #3 / Nov 06, 2012 5:27pm

    Robin Sowell

    13255 posts

    😉  Clever.  Thanks for sharing…. and ponders what I would have come up with.  Likely the same thing!

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

ExpressionEngine News!

#eecms, #events, #releases