Title: Linking PHP files in WP
Last modified: August 19, 2016

---

# Linking PHP files in WP

 *  [ChetG](https://wordpress.org/support/users/chetg/)
 * (@chetg)
 * [18 years ago](https://wordpress.org/support/topic/linking-php-files-in-wp/)
 * I have recently redesigned my website. In doing so I have ran into a problem 
   that I have not been able to resolve on my own. In my sidebar I created a section
   for links to other pages on my website. This of course works fine if I decide
   to just use plain old HTML files, but I want to make them PHP files because I
   am integrating my WP header, footer and sidebar into the pages.
 * My problem is that I can’t figure out how to link to my php files and make them
   load correctly. If that doesn’t make sense to you then follow the link below:
 * [ChetG.com](http://chetgassett.com)
 * On the sidebar there is a division called SECTIONS. Try to follow the “ABOUT”
   link and you will see the error I am getting.
 * Any and all help you guys have to offer will be greatly appreciated!
 * Thank you all,
 * ChetG

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years ago](https://wordpress.org/support/topic/linking-php-files-in-wp/#post-746562)
 * You can NOT link ever directly to any template file! If those “pages” of yours
   have the call for header.php and stuff like that AND are located in the theme
   folder… WP “thinks” they are template files.

Viewing 1 replies (of 1 total)

The topic ‘Linking PHP files in WP’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/linking-php-files-in-wp/#post-746562)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
