Title: Some php help for a nested php
Last modified: August 20, 2016

---

# Some php help for a nested php

 *  [miguelesquirol](https://wordpress.org/support/users/miguelesquirol/)
 * (@miguelesquirol)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/some-php-help-for-a-nested-php/)
 * Does anybody would want to check this… I´m trying to show an slide in the first
   page of a blog and hide it in the rest, including the older posts pages…
 *     ```
       <?php if ( is_home()  ) {
       echo do_shortcode('[orbit-slider]');
       } else {
   
       if ( page()  ) {
   
       ?>
   
       <head>
       <style type="text/css">
   
       body {	background: #f4f5f7 url("/csjrsite/wp-content/themes/twentyten-child/images/bg2.jpg") repeat-x;}
       </style>
       </head>
   
       <?php } } else { ?>
   
       <head>
       <style type="text/css">
   
       body {	background: #f4f5f7 url("/csjrsite/wp-content/themes/twentyten-child/images/bg2.jpg") repeat-x;}
       </style>
       </head>
   
       <?php } ?>
       ```
   

The topic ‘Some php help for a nested php’ is closed to new replies.

## Tags

 * [nested](https://wordpress.org/support/topic-tag/nested/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [miguelesquirol](https://wordpress.org/support/users/miguelesquirol/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/some-php-help-for-a-nested-php/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
