Title: Rotate Header Image
Last modified: August 18, 2016

---

# Rotate Header Image

 *  [fuzzy_logic](https://wordpress.org/support/users/fuzzy_logic/)
 * (@fuzzy_logic)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/rotate-header-image/)
 * Is there a script/plug-in that will allow me to rotate or randomly pick a header
   image?
    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/rotate-header-image/#post-161772)
 * This still works:
    [http://weblogtoolscollection.com/archives/2004/04/17/random-image-header/](http://weblogtoolscollection.com/archives/2004/04/17/random-image-header/)
 *  [oriecat](https://wordpress.org/support/users/oriecat/)
 * (@oriecat)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/rotate-header-image/#post-161773)
 * Here’s one
    [http://mcdevzone.com/2005/02/22/header-graphic](http://mcdevzone.com/2005/02/22/header-graphic)
 * I’ve used this one inthe past
    [http://photomatt.net/scripts/randomimage](http://photomatt.net/scripts/randomimage)
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/rotate-header-image/#post-161774)
 * Beat you ……….. just :p
 *  [oriecat](https://wordpress.org/support/users/oriecat/)
 * (@oriecat)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/rotate-header-image/#post-161776)
 * Yeah, but I listed two! 😛
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/rotate-header-image/#post-161778)
 * Okay … call it quits then 😉
 *  Thread Starter [fuzzy_logic](https://wordpress.org/support/users/fuzzy_logic/)
 * (@fuzzy_logic)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/rotate-header-image/#post-161848)
 * I tried to follow the instruction but it doesn’t work. Here’s my code
 * `
    <?php function header_graphic() { $num=rand(0,8); echo $num."masthead.jpg";};?
   >
 * <head>
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
 *  <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('
   charset'); ?>" />
    <style type="text/css" media="screen"> #masthead { margin:
   0 auto; border: 1px solid #999; background-image: url("< ?php header_graphic();?
   >"); width: 660px; height: 211px; } [@import](https://wordpress.org/support/users/import/)
   url( <?php bloginfo('stylesheet_url'); ?> );
 * </style>
 *  Thread Starter [fuzzy_logic](https://wordpress.org/support/users/fuzzy_logic/)
 * (@fuzzy_logic)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/rotate-header-image/#post-161851)
 * By the way, I’m using the theme Minimal Plus.
 *  [blips](https://wordpress.org/support/users/blips/)
 * (@blips)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/rotate-header-image/#post-161880)
 * I’m using a different approach for the headers, it uses a fieldname per post 
   and a header file-name. This is the autor’s site;
    [http://www.holycow.com/joe/archives/2005/01/25/headimage-wordpress-plugin/](http://www.holycow.com/joe/archives/2005/01/25/headimage-wordpress-plugin/)
   See it in action on my site; [http://usadutch.com/blips](http://usadutch.com/blips)
   You have to click on a single post and sometimes it shows a diffeent header-picture
   and sometimes the standard header.
 *  [blips](https://wordpress.org/support/users/blips/)
 * (@blips)
 * [21 years ago](https://wordpress.org/support/topic/rotate-header-image/#post-162726)
 * The per post header is not working right, it breaks the RSS feed so I disabled
   it again.
 * BLIPS.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Rotate Header Image’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [blips](https://wordpress.org/support/users/blips/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/rotate-header-image/#post-162726)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
