1

我在我们网站的首页上放了一个查询帖子,将我自己的帖子从公司博客中拉出来。它工作正常,但除非页面在加载后刷新,否则永久链接不起作用。任何帮助理解为什么将不胜感激。谢谢!

这是代码:

<div style="float:left; display:inline; margin-left:385px; margin-top:-225px;">
<?php query_posts('showposts=5&author=4'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<div>


<!-- Display the Title as a link to the Post's permalink. -->

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></div>
4

1 回答 1

1

试着结束你的时间。

<?php the_title(); ?></a></div>

<?php endwhile; ?>
于 2012-10-02T14:55:08.687 回答