Title: Random header image
Last modified: August 19, 2016

---

# Random header image

 *  [erick_paper](https://wordpress.org/support/users/erick_paper/)
 * (@erick_paper)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/random-header-image-1/)
 * Hi. I am building my own theme. I have a section in the header where an image
   should show up. I would like to manage these images within WP. What is a good
   way to automate this within a theme?
 * I thought about making “pages” with the URL of these images and then randomizing
   those pages through PHP in my header.php template, but that doesn’t sound very
   clever.
 * Any ideas on what is a smart and efficient way of randomizing images?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [couchmouse](https://wordpress.org/support/users/couchmouse/)
 * (@couchmouse)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/random-header-image-1/#post-692371)
 * I am using the [NextGEN Gallery](http://wordpress.org/extend/plugins/nextgen-gallery/)
   plugin to random rotate header images on my site.

Viewing 1 replies (of 1 total)

The topic ‘Random header image’ is closed to new replies.

## Tags

 * [theme development](https://wordpress.org/support/topic-tag/theme-development/)

 * 1 reply
 * 2 participants
 * Last reply from: [couchmouse](https://wordpress.org/support/users/couchmouse/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/random-header-image-1/#post-692371)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
