Title: Including php in static php files
Last modified: August 19, 2016

---

# Including php in static php files

 *  [timmy11b](https://wordpress.org/support/users/timmy11b/)
 * (@timmy11b)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/including-php-in-static-php-files/)
 * I have some static .html pages that I will convert to .php files. My question
   is how to include the header and footer and other php elements from the main 
   wordpress theme in these files?
    The pages would be something like domainname.
   com/content1.php, domainname.com/content2.php
 * Is there any way to do this?
 * Thank you in advance for your help
    Tim

Viewing 1 replies (of 1 total)

 *  Thread Starter [timmy11b](https://wordpress.org/support/users/timmy11b/)
 * (@timmy11b)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/including-php-in-static-php-files/#post-701256)
 * Just to clarify, I am trying to include the header.php and footer.php files that
   are part of the wordpress blog in static php files that will exist outside of
   the blog structure. Essentially, I am bulk creating these static php files and
   when I ftp them into the root directory, I would like the header and footer to
   be the same as the blog. If you haven’t guessed already, I am a complete noob
   at php.
 * Thanks,
    Tim

Viewing 1 replies (of 1 total)

The topic ‘Including php in static php files’ is closed to new replies.

## Tags

 * [page template](https://wordpress.org/support/topic-tag/page-template/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [static html](https://wordpress.org/support/topic-tag/static-html/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [timmy11b](https://wordpress.org/support/users/timmy11b/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/including-php-in-static-php-files/#post-701256)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
