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.

random entries not random

April 28, 2012 5:57am

Subscribe [3]
  • #1 / Apr 28, 2012 5:57am

    Wonk

    21 posts

    I have a bunch of quotes in a channel and I just want to show any random 4 of them at a time.
    The trouble is, it seems to select/sort/order them the same way every time.  What simple concept
    am I missing here?

    {exp:channel:entries channel="quotes" orderby=”random” dynamic="off" limit="4" disable="category|pagination|trackbacks|member_data"}

    and I’ve tried it with dynamic on, just in case that was needed.

  • #2 / Apr 28, 2012 6:53am

    aelvan

    33 posts

    Not sure if the code you’ve posted is the exact code, or if it has anything to do with the matter, but I notice that the quotes around random is wrong?

  • #3 / Apr 28, 2012 7:03am

    Wonk

    21 posts

    Interesting…  I have no idea how that happened, but it totally makes sense.  It’s so often the little stuff isn’t it.  Thank you, that was it!
    So glad too, otherwise I would have been totally confused as to the use of ‘random’.

  • #4 / Aug 04, 2012 10:26pm

    I had the exact problem with quotes, caused by copying the code for orderby=“random” off the EE documentation for the orderby parameter (http://ellislab.com/expressionengine/user-guide/modules/channel/channel_entries.html/#orderby).  Ouch.  Glad it is fixed though, this was driving me nuts.  Thanks for the answer.

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

ExpressionEngine News!

#eecms, #events, #releases