Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i want to get the 5 images of a one post gallery and show this random,

example : [gallery id="123" orderby="rand" {numberpost=1 } or offset ? ]

[gallery] codex

tanks for help me.

share|improve this question
    
i think to get parametric include id of images with offset , any idea ? –  Behnam Aug 24 '12 at 19:45
add comment

1 Answer 1

up vote 0 down vote accepted

Try installing the following plugin:

http://wordpress.org/extend/plugins/gallery-extended/

You'll be able to set how many images to show via this code:

[gallery link=file start=1 end=5]

Hope this helps!

share|improve this answer
    
yes this is work , tanks –  Behnam Aug 26 '12 at 16:21
    
but this is show 5 image , i need to show 1 image by random order . you get it ? –  Behnam Aug 26 '12 at 16:25
    
finally i found it ! [gallery link=file start=0 end=0 sortby="rand"] –  Behnam Aug 28 '12 at 13:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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