Hello,
You can try something like this:
[attached orderby=rand count=1]
[field image] or [field thumbnail]
[/attached]
Actually there’s a shorter version:
[attached-field image orderby=rand]
Thread Starter
dkost
(@dkost)
Thank you a lot fo your support, Eliot.
Maybe I’m not specified my problem precosely, but I need to display on a page a one random image attached to another page. Is it possible?
Maybe like that?
[loop type=page id=XXX]
[field image=image_field size=thumbnail]
[/loop]
Yes, for a random attachment, something like this should work:
[loop type=page id=XXX]
[attached-field thumbnail orderby=rand]
[/loop]
Thread Starter
dkost
(@dkost)
That works!
Thanks again. Great plugin.
Such a great plugin! Thank you Eliot.