I want to create a special php and javascript page, but I want it to use my WordPress theme that is already installed. How to do that?
Thanks
I want to create a special php and javascript page, but I want it to use my WordPress theme that is already installed. How to do that?
Thanks
You must be logged in to post a comment.
You can do this by including the header and footer from wordpress, and putting your own code in the middle. Such as this:
I haven’t tested this on newer versions of wordpress, but in the past that has worked. You can even include the wpconfig file if you want to use some of those variables, such as the database connection information.
Hope this helps.
See Integrating WordPress with Your Website « WordPress Codex on how to pull the header and other includes into a static php page/file, like: