WordPress Meet HTML
by REFERDEAL
Article Source: Original

Overview
Step 1
Step 2
Step 3
Step 4

To integrate the new template into our article, first create a post in WP for the article we are integrating to. Click on the post to view it in single page mode (the post, responses, reply form all in one page). Make note of the post id in the URL "?p=post_id". Let's assume post id is 9.

Designate an area in the HTML for the feedback. I prefer boxing it up to mark the distinction between content and feedback. Insert this code into the feedback area, match the post id to above.

<?php
$_SESSION['z'] = '9';

/* Short and sweet */
define('WP_USE_THEMES', true);

/* this is assuming wordpress is installed under blog subdir */
require('../blog/wp-blog-header.php');
?>

Rename the article extension from HTML to PHP so the code can take effect.

We are almost there. If you try posting feedback now, the system will stay in the blog page after submission. What we want is for the page to redirect back to the article page after posting.

Step 4..