Title: Page content shoud be php code. Please help
Last modified: August 19, 2016

---

# Page content shoud be php code. Please help

 *  [levani01](https://wordpress.org/support/users/levani01/)
 * (@levani01)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/page-content-shoud-be-php-code-please-help/)
 * I want to have page with php code but don’t know how to do it. If I creat page
   from admin panel I can’t insert php code as wordpress doesn’t allow this. If 
   I create new php file manualy and upload it in my theme directory what would 
   the address look like?
 * I want to include the head, sidebar and footer in this file but the content shoud
   be php code. How can I do it?

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

 *  [mrmist](https://wordpress.org/support/users/mrmist/)
 * (@mrmist)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/page-content-shoud-be-php-code-please-help/#post-946665)
 * If you want to include php in your entries you can use a plugin like [exec php.](http://wordpress.org/extend/plugins/exec-php/)
 *  Thread Starter [levani01](https://wordpress.org/support/users/levani01/)
 * (@levani01)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/page-content-shoud-be-php-code-please-help/#post-947020)
 * **mrmist**
    But exec php doesn’t allow to use include function…
 * How can I include custom theme file in wordpress page?
 *  [misiek303](https://wordpress.org/support/users/misiek303/)
 * (@misiek303)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/page-content-shoud-be-php-code-please-help/#post-947151)
 * put the function there which include your page
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/page-content-shoud-be-php-code-please-help/#post-947152)
 * You can use php code in a custom page template for this page. I made my page 
   templates by duplicating and then modifying my theme’s page.php.
 * [http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates](http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates)

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

The topic ‘Page content shoud be php code. Please help’ is closed to new replies.

## Tags

 * [content](https://wordpress.org/support/topic-tag/content/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [PHP in page](https://wordpress.org/support/topic-tag/php-in-page/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [iridiax](https://wordpress.org/support/users/iridiax/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/page-content-shoud-be-php-code-please-help/#post-947152)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
