As far as I can tell, orderby="random" does not work on the new Grid fieldtype. Has anyone found a good workaround?

I have a grid with several images. I'd like to display one at a time, but randomize which image shows.

2 Answers 2


As of EE 2.7.3 this is possible via the native orderby="random" parameter. http://ellislab.com/expressionengine/user-guide/modules/channel/grid.html#orderby


I don't know if Grid has that option, but you can use our little Shoe Shine Toolbox plugin to generate a random number. Get it from Github.

With it, you can do this:

{grid-field row_id="{exp:shoeshine_toolbox:random_number from='1' to='10'}"}

Note: There are other great add-ons that can generate random numbers. Just do a search on www.devot-ee.com

  • I did try this approach with the "Low Random" plugin, but get php errors and no output for the field. I believe parse order is causing some grief between the Grid parameters and the Low Random plugin.
    – Deaconweb
    Nov 7, 2013 at 21:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.