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.

any entry except the one being displayed

November 26, 2012 4:21pm

Subscribe [1]
  • #1 / Nov 26, 2012 4:21pm

    thefifthlion

    133 posts

    I have a blog entry view page setup where I would like to also show a random entry. Any entry other than the one being displayed dynamically.

    How can I achieve this? Was thinking this would do it but no:

    {exp:channel:entries channel="blog" entry_id="not entry_id" limit="1" orderby="random" dynamic="no"}
  • #2 / Nov 27, 2012 10:15am

    thefifthlion

    133 posts

    excluding the current entry by segment seems to work

    {exp:channel:entries channel="blog" url_title="not {segment_3}” limit=“1” orderby=“random” dynamic=“no”}

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

ExpressionEngine News!

#eecms, #events, #releases