wordpress中有一个很好用的功能--置顶, 现在来研究下使用方法:设置:在列表页点快速编辑(Quick Edit), 然后把置顶勾上,如图


使用:
  1. ......
  2. $sticky = get_option('sticky_posts');
  3. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  4. query_posts
    ......