Title: Custom PHP files &#8211; theming
Last modified: August 19, 2016

---

# Custom PHP files – theming

 *  [nny76](https://wordpress.org/support/users/nny76/)
 * (@nny76)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/custom-php-files-theming/)
 * Hi,
 * New to the forums, have a site I am working on and hoping someone can point me
   in the right direction for what I am trying to accomplish.
 * My site is here: [http://www.atlantiagroup.com/tpg](http://www.atlantiagroup.com/tpg),
   i am specifically working on this page: [http://www.atlantiagroup.com/tpg/?page_id=81](http://www.atlantiagroup.com/tpg/?page_id=81)
 * I have some custom PHP code that allows the user to search a MYSQL database for
   listings. I created the PHP file and added it as a template for the specific 
   page, and this seems to work great.
 * The issue I am having is with the results and subsequent pages from there. I 
   am not sure how to apply the header and footer to the results page without it
   breaking.
 * I am in the process of importing the search from my local web server, so some
   of the links on the pages may still be broken, FYI.
 * Any help appreciated.

Viewing 1 replies (of 1 total)

 *  Thread Starter [nny76](https://wordpress.org/support/users/nny76/)
 * (@nny76)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/custom-php-files-theming/#post-1301315)
 * Rephrasing my question may help get a response. Basically I have php code acting
   as a template for a page. The code yields results on another php file. The results
   don’t share the theming, etc of the main template file, and any attempts to use
   the get header call in the main file on the results page causes errors.
 * If anyone has seen a topic on this before, or knows of a resource I can look 
   into further, that would help too.
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Custom PHP files – theming’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [nny76](https://wordpress.org/support/users/nny76/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/custom-php-files-theming/#post-1301315)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
