2009-10-09 57 views
0

我想知道我怎麼可以添加通過這種方法被質疑在WordPress的崗位之間的東西:添加內容之間的WordPress查詢職位

<?php $the_query = new WP_Query('category_name=name&showposts=2'); 
while ($the_query->have_posts()) : $the_query->the_post();?> 

有沒有一種方法,我可以添加一些簡單的,就像說之間的<hr>兩個職位被拉?

回答

0
<?php $the_query = new WP_Query('category_name=name&showposts=2'); 
while ($the_query->have_posts()) 
{ 
$the_query->the_post(); 
echo '<hr />'; 
} 
?> 
+0

感謝您的回覆..但現在它只顯示一個職位上面的橫向規則 – Zac 2009-10-09 21:36:50

+0

我懷疑如此。唯一的變化是php代碼現在在塊中。不會影響帖子或任何內容的數量。 – dusoft 2009-10-10 00:12:43

相關問題