WordPress.org

Ready to get started?Download WordPress

Forums

Embeding Code In Posts (4 posts)

  1. scryed_reaper
    Member
    Posted 8 years ago #

    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!

  2. Samuel B
    moderator
    Posted 8 years ago #

    http://www.nosq.com/blog/2006/01/runphp-plugin-for-wordpress/

    Read installation instructions very carefully.

  3. Doodlebee
    Member
    Posted 8 years ago #

    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

    You can see my previous post on this here:

    http://wordpress.org/support/topic/73462?replies=4

    Worked like a charm!

  4. scryed_reaper
    Member
    Posted 8 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.