Title: Post-background does not change!?!!?!
Last modified: August 19, 2016

---

# Post-background does not change!?!!?!

 *  [pookey](https://wordpress.org/support/users/pookey/)
 * (@pookey)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/post-background-does-not-chnage/)
 * Hi!
 * I’m doing a random background by session function i my wp theme. I finally got
   it to work, when I noticed that the background i white when I click on a post!
 * Does anyone know what this can be?
 * I have this in my HEADER.PHP:
 * <?php include(“background.php”);
    ?>
 * …
 * </head>
 * <body background=”<?=$_SESSION[‘background’]?>”>
 * and In my BACKGROUND.PHP:
 * <?php
    session_start();
 * if(!$_SESSION[‘background’])
    $_SESSION[‘background’] = ‘wp-content/themes/tutorial2/
   background/background’ . mt_rand(1, 5). ‘.jpg’; ?>
 * Thanks!
 * /Hans

Viewing 1 replies (of 1 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/post-background-does-not-chnage/#post-699735)
 * Perhaps:
 *     ```
       <?=$_SESSION['background']?>
       ```
   
 * should be:
 *     ```
       <?php echo $_SESSION['background']; ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Post-background does not change!?!!?!’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/post-background-does-not-chnage/#post-699735)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
