Title: New to php. Need some PHP help
Last modified: August 19, 2016

---

# New to php. Need some PHP help

 *  [Cixxy](https://wordpress.org/support/users/cixxy/)
 * (@cixxy)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/new-to-php-need-some-php-help/)
 * Hi im just wondering on my site,
    [http://www.anothera.net/v2](http://www.anothera.net/v2)
   how do i make it so that the headings Origins, News and Archives only appear 
   for the index.php page and not the others?
 * I have tried things with Sites in the wordpress admin, but clearly wordpress 
   isnt built by default to do such a thing. So I’m guessing I have to go with PHP?
   I have tried something like adding <?php if (is_home()); ?> to the start of those
   headings and <?php endif to the bottom of them. Doesn’t work though.
 * Any help would be v. appreciate ty.

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

 *  Thread Starter [Cixxy](https://wordpress.org/support/users/cixxy/)
 * (@cixxy)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/new-to-php-need-some-php-help/#post-931104)
 * and also so that stuff like Tags won’t use all of that headings as well.
 *  Thread Starter [Cixxy](https://wordpress.org/support/users/cixxy/)
 * (@cixxy)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/new-to-php-need-some-php-help/#post-931113)
 * worked it out by
 * <?php if ( is_home() ) { include (‘file.php’); } ?>
 * but , how to do it instead of including? like <open> </end> kind of way?
 *  [Hiranthi](https://wordpress.org/support/users/illutic/)
 * (@illutic)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/new-to-php-need-some-php-help/#post-931117)
 * Well, the following should have the same result:
 *     ```
       <?php if ( is_home() ) {?>
       <!-- YOUR HTML HERE -->
       <?php } ?>
       ```
   

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

The topic ‘New to php. Need some PHP help’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Hiranthi](https://wordpress.org/support/users/illutic/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/new-to-php-need-some-php-help/#post-931117)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
