Title: Embeding Code In Posts
Last modified: August 18, 2016

---

# Embeding Code In Posts

 *  [scryed_reaper](https://wordpress.org/support/users/scryed_reaper/)
 * (@scryed_reaper)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/embeding-code-in-posts/)
 * I wish to use wordpress pages to fully manage the content on my site because 
   it is nice to have an all in one pannel that i can acces from any pc, no need
   to ftp and edit code.
 * My problem is i create my lovely pages but i cant embed alot of code. I have 
   a few small php scripts and when i goto add them in the html edit part the post
   is stripped of tages such as <? and a few others making the code useless.
 * I tried creating a blank page.php template so that it had a header/sidebar/footer
   but i could add my own content but i get –> Fatal error: Call to undefined function:
   get_header() in /mounted-storage/…./files.php on line 1
 * If i could figure out how to embed my scripts in a “new page” post that would
   be great or at least be abel to create custom X.PHP files i can link to that 
   adhear to my current theme but i can add any amount of code to it i want.
 * Any ideas?? Thanks!

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/embeding-code-in-posts/#post-396713)
 * [http://www.nosq.com/blog/2006/01/runphp-plugin-for-wordpress/](http://www.nosq.com/blog/2006/01/runphp-plugin-for-wordpress/)
 * Read installation instructions very carefully.
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/embeding-code-in-posts/#post-396714)
 * I had this problem not too long ago. I have a custom-written PHP script for my
   contact form I wanted to use in WordPress, because I wanted the layout/sidebars
   to coincide with the rest of my WordPress site. Exact same issue – my PHP code
   wouldn’t work for squat in the content area. Drove me batty. But then, I found
   this:
 * [http://codex.wordpress.org/Creating_a_Static_Front_Page](http://codex.wordpress.org/Creating_a_Static_Front_Page)
 * You can see my previous post on this here:
 * [http://wordpress.org/support/topic/73462?replies=4](http://wordpress.org/support/topic/73462?replies=4)
 * Worked like a charm!
 *  Thread Starter [scryed_reaper](https://wordpress.org/support/users/scryed_reaper/)
 * (@scryed_reaper)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/embeding-code-in-posts/#post-396718)
 * Wow thanks Doodlebee i got so cought up in php and how wp is set up i did an 
   amature thing and forgot to make an absolute link when declaring ./wp-blog-header.
   php …wow
 * Works great now, thanks again!

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

The topic ‘Embeding Code In Posts’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [scryed_reaper](https://wordpress.org/support/users/scryed_reaper/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/embeding-code-in-posts/#post-396718)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
