I have currently taken on board a wordpress website. There is a PHP web app that I want to make, a login and download mp3 section that is not neccessarily open to the public.
Anyway we have paid for a theme and instead of writing a bunch of pages that don’t look anything like the theme, I’d like it to look like the rest of the site. But i cannot see how to add PHP into anything on this thing. I have heard talk of page.php but I don’t want the code to affect all pages. How can I go about this?
You can do either of the following:
Write a custom wordpress plugin (not hard, I’ve written dosens). Then place that plugin on a wordpress page in the dashboard (not a post). You can use a content filter to trigger the plugin. It will then execute in the context of a page that is already rendered by the theme.
Create a custom page type. You do this by physically copying and editing and then modifying one of the theme files. Then you create a new wordpress page in the dashboard (again, not a post). When formatting the page within wordpress, you choose the kind of page. That is where you choose your new customised version of the theme page template.
For option 1, you are going to have to read the code of example plugins, and study the documentation on the WordPress Codex. For option 2, there are probably some tutorials online. Google should help you there.