how to pull wordpress post comments to a external page

add
to your loop and replace it with the the_permalink() function something like this:

<?php
// Include WordPress 
define('WP_USE_THEMES', false);
require('./blog/wp-load.php');
?>
<div>
<p style="font-size:18px;color:white;font-wieght:700;">Recently Asked Questions</p>
<?php query_posts('showposts=3'); ?>
<?php while (have_posts()): the_post(); ?>
<div id="faq">
<a href="https://wordpress.stackexchange.com/questions/7919/<?php the_permalink() ?>"><?php the_title() ?></a><br />
<?php the_time('F jS, Y') ?>
<?php the_excerpt(); ?>
<?php comments_popup_link(); ?>
<?php comments_template( '', true ); ?>
<br />
</div>
<?php endwhile; ?>
</div>

Leave a Comment