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.

3 Answers 3


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?

  • 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
    Commented Aug 7, 2011 at 22:52


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.


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

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.