2012-01-07 45 views

回答

1

使用query_posts()獲得的所有帖子,並循環通過它的ID,例如:

<?php 

// The Query 
query_posts($args); 

// The Loop 
while (have_posts()) : the_post(); 
echo '<li>'; 
the_title(); 
echo '</li>'; 
endwhile; 

// Reset Query 
wp_reset_query(); 

?> 
+0

完全奏效。謝謝!! – mnelson7982 2012-01-07 23:45:10