how do I put PHP code in a WordPress page on the HTML tab? do I have to wrap it in something special so that WordPress doesn’t strip it out. I am a total novice, thank you for your help.
Hello
Wordpress is a blogging engine that is created using PHP just like the content managing system Joomla. Usually you would use PHP to create sites that query databases as well as compile dynamic pages into HTML. Wordpress and Joomla already do that. They take your content and compiles it into pages to be viewed. It was created to just handle input and display it. I don’t think you can successfully execute PHP inside a system that isn’t meant to have executable code outside of the functions that are built in and are run at execution time. However, there are plugins that do the extra stuff that Wordpress doesn’t do by default. Insert PHP is a plugin that I found that should do the job you want done. Hopefully this helps.
Cheers!
Hi .
I know that this is an old topic, but I hope my reply will help others.
There is an nice plugin named Insert PHP(url - wordpress.org/plugins/insert-php) that will allow you to insert PHP code into posts and pages.