I need to add additional non-WordPress pages to my site with the same look and feel as the rest of the blog. These pages use pretty intensive scripts and I do not want to run them from WordPress pages using a plugin for PHP scripting.
I'm using .php pages and have at the top of the page as:
<?php define("WP_USE_THEMES", false); require("wp-blog-header.php");
This also allows me to call functions like: get_header(), get_sidebar(), and get_footer(), so these pages look like the rest of the site.
This gives me great flexibility on these pages, but I would like to allow people to read and write comments on these pages, just like they were full WordPress pages.
What I'm thinking is, maybe creating posts in WordPress that correspond to these pages, and set them in a hidden category. After that, maybe I could set some kind of variable on these non-WordPress pages to tell WordPress that I'm loading variables from that page, load those comments, and create a form so posted variables are associated with that page.
Is this possible? I'm hoping this might also help me with the problem with my <title> tag, as it is defaulting to "DOMAIN - Home". Maybe if WordPress is told somehow that I'm loading a certain page it would give its title too.