Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    You can try something like this:

    [attached orderby=rand count=1]
      [field image] or [field thumbnail]
    [/attached]
    Plugin Author Eliot Akira

    (@miyarakira)

    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]

    Plugin Author Eliot Akira

    (@miyarakira)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Diaplay random image’ is closed to new replies.