添加到循环中,并用\\u permalink()函数替换它,如下所示:
<?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="<?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>