一。用offset偏移調用文章,這個我認為是比較好的,經常用。容易控制
1. 第一個post顯示5篇
query_posts('showpost'= 5);
2.那么第二個post顯示除上面顯示過的6篇
query_posts('showpost'= 6 & 'offset'=5);
?
二、用置頂文章
1.第一個Post顯示置頂文章
query_posts('showpost'= 5 , 'post__in' => get_option('sticky_posts'));
2.第二個post顯示除置頂文章外的文章
query_posts('showpost'= 5 , 'post__not_in' => get_option('sticky_posts'));
?
?
三、用分類,標簽來區分,每個post id不一樣就好
query_posts('cat'= xxxx);
query_posts('tag'= xxxx);