2012-10-02 14 views
1

我把一個查詢帖子放在我們網站的首頁,將我自己的帖子拉出公司博客。它工作正常,但永久鏈接不工作,除非加載後刷新頁面。任何幫助理解爲什麼會非常感激。謝謝!我的wordpress帖子查詢中的固定鏈接將不會工作,直到頁面刷新

下面是代碼:

<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> 
+0

你是什麼意思*永久鏈接不工作*? – soju

回答

1

嘗試結束你的一段時間。

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

<?php endwhile; ?> 
相關問題