<?php
$sticky = get_option('sticky_posts');rsort( $sticky );$sticky = array_slice($sticky, 0, 9);query_posts( array( 'post__in' => $sticky, 'caller_get_posts' => 1 ) );while (have_posts()) : the_post(); php endwhile;?>本文共 222 字,大约阅读时间需要 1 分钟。
<?php
$sticky = get_option('sticky_posts');rsort( $sticky );$sticky = array_slice($sticky, 0, 9);query_posts( array( 'post__in' => $sticky, 'caller_get_posts' => 1 ) );while (have_posts()) : the_post(); php endwhile;?>转载地址:http://nxckx.baihongyu.com/