Title: if custom php file
Last modified: August 21, 2016

---

# if custom php file

 *  [tayssir.ch](https://wordpress.org/support/users/tayssirch/)
 * (@tayssirch)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/if-custom-php-file/)
 * hello i install wordpress on my website root.
    i create a page called add-post.
   php i added on page header : `<?php require( 'wp-load.php' ); ?>`
 * now in my theme footer.php, i have ads with if conditional
    if is_page, display
   ad
 * but when i acces add-post.php i can’t see the ad cz its not a Page
 * so how can i use if conditional for external page file
 * Thanks

The topic ‘if custom php file’ is closed to new replies.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [external page](https://wordpress.org/support/topic-tag/external-page/)
 * [if](https://wordpress.org/support/topic-tag/if/)

 * 0 replies
 * 1 participant
 * Last reply from: [tayssir.ch](https://wordpress.org/support/users/tayssirch/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/if-custom-php-file/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
