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.

In theme Twenty Eleven, do the default images rotate randomly, or with some sequence?

As far as I can see, I think it's random, but there might be some pattern/sequence that I didn't notice.

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

the header image is picked at random;

see this line in /wp-includes/theme.php line 1476:

$random_image = array_rand( $headers );

out of interest: why are you asking, and what difference would it make?

share|improve this answer
    
I'm asking because I'm changing the images and wondered whether my sequence of images would be random or if they could appear in order, kind of like an animation: richardclunan.com –  Richard Aug 7 '11 at 22:52
add comment

Random.

get_header_image() uses is_random_header_image() to check if you hadn't selected specific image and get_random_header_image() to retrieve header if true.

share|improve this answer
add comment

well It Rotates Randomly. But you can change it with your sequence if you want remove random function from header.php and add urs.

share|improve this answer
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.