Title: Simple PHP Question
Last modified: August 19, 2016

---

# Simple PHP Question

 *  Resolved [mismatchedpear](https://wordpress.org/support/users/mismatchedpear/)
 * (@mismatchedpear)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/simple-php-question-2/)
 * I have a twitter feed I want to display on the main page in the header.
 * However, I DO NOT want the feed to display if it is NOT index.php.
 * Is there a simple “If this=index.php” code I could do to display my twitter feed
   only on the mainpage?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/simple-php-question-2/#post-1371443)
 *     ```
       <?php if( is_home() ) :?>
       [ twitter feed code]
       <?php endif;?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Simple PHP Question’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/simple-php-question-2/#post-1371443)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
