34 | Image Rotator for the Header of Twentyten
The wp3 default theme TwentyTen comes with a choice of header images, which can be selected from the dashboard.
To rotate these images to show randomly in the header, we can make use of the global array variable which stores all the default header image information: $_wp_default_headers.
The rest is easy: we build a function, which we later save in functions.php of TwentyTen, to pick a random image out of the available images:
function rotate_default_headers() {
global … » read more »

