Write the Javascript or PHP code directly into your template
actually I wasn’t reading the post properly… you probably can’t put PHP into your posts.
You should be able to put javascript into a post, however. Maybe try putting the script into your template and calling the function in your post text.
Thread Starter
mdumka
(@mdumka)
Thanks for getting back to me guys …
Here is the problem … I have a client’s website that is using wordpress like a CMS. Now the client wants a cost estimater (6 steps) that will eventually turn into a ‘buy-now’ paypal button.
For now I can write the estimator in JavaScript, but eventually it will have to turn into PHP.
How can I create a page called ‘step 1’ and embed PHP or Javascript … or HTML for that matter and have it run like I was coding a PHP page.
Thanks again for the help.
Mike
Thread Starter
mdumka
(@mdumka)
Oh yeah … I also do not want to make a template … I would like to use just a page.
If you don’t want to use a template, you’ll need to find a plugin like PHPExec or something that allows you to execute PHP from your posts.
Note that this probably slightly decreases the security of your site.