kash86uk;1110691 wrote:
So, can someone just add commenting feature to their current website with wordpress? you dont need to use word press web template?
I use just the Wordpress internals for this page:
http://vijayanderson.com/calendar.php
The site owner (my brother, actually) can add new entries through the wordpress blog interface (he doesn't know HTML), and they go into the WP database.
Then to put the entries on the page, this code is at the top of the page:
<?php
// Include Wordpress
define('WP_USE_THEMES', false);
require('wp-blog-header.php');
?>
and then to actually pull the stuff out of WP this code loops through the entries and inserts them in page:
<?php query_posts('showposts=-1');
while (have_posts()):
the_post();
echo '<p class="blog-entry-title">';
the_title();
echo "</p>\n";
echo '<div class="item-body">';
the_content();
echo "</div>\n";
endwhile;?>
The result is basically a simple blog that doesn't look like a typical WP blog. I'm not a Wordpress expert, so I'm not sure this is the best way to do it, but but it's been working OK for a few months now.
I can't say I fully understand your problem, but this illustrates that you can fairly easily pull the data out of Wordpress without using WP templates.
...Mike