成立7年
专业 安全 放心
点击 ➡️ 立即加入 ⬅️
打开新世界的大门
  
if( mo_is_minicat() ){ while ( have_posts() ) : the_post(); echo '
'; echo '

'.get_the_title().'

'; echo '

'; if( _hui('post_plugin_date') ){ echo ''; } if( _hui('post_plugin_author') ){ $author = get_the_author(); if( _hui('author_link') ){ $author = ''.$author.''; } echo ''.$author.''; } if( _hui('post_plugin_view') ){ echo ''._get_post_views().''; } if ( comments_open() && _hui('post_plugin_comn') ) { echo '评论('.get_comments_number('0', '1', '%').')'; } echo '

'; echo '
'; the_content(); echo '
'; echo '
'; endwhile; wp_reset_query(); _moloader('mo_paging'); }else{ echo '

', single_cat_title(), $pagedtext.'

'.($description?'
'.$description.'
':'').'
'; global $wp_query; global $sticky_ids; $pagedefaultnums = get_option( 'posts_per_page', 10 ); $pagenums = $pagedefaultnums; $offset_nums = 0; $sticky_nums = 0; $sticky_ids = get_option('sticky_posts'); if( _hui('cat_sticky_s') && $sticky_ids && _hui('cat_sticky_n') && in_array(_hui('cat_sticky_n'), array('1','2','3','4','5')) ){ rsort( $sticky_ids ); $args = array( 'post__in' => $sticky_ids, 'posts_per_page' => -1, 'ignore_sticky_posts' => 0 ); $sticky_ids = array(); query_posts($args); while ( have_posts() ) : the_post(); if( in_category( $cat_id, $post ) ){ $sticky_ids[] = get_the_ID(); } endwhile; wp_reset_query(); $sticky_nums = count($sticky_ids); if( $sticky_nums > _hui('cat_sticky_n') ){ $sticky_nums = _hui('cat_sticky_n'); } $sticky_ids = array_slice($sticky_ids, 0, $sticky_nums); if( $paged <= 1 ){ $args = array( 'post__in' => $sticky_ids, 'posts_per_page' => $sticky_nums, 'ignore_sticky_posts' => 1 ); query_posts($args); get_template_part( 'excerpt' ); wp_reset_query(); $pagenums = $pagenums-$sticky_nums; }else{ $offset_nums = $sticky_nums; } } $sticky_ids2 = $sticky_ids; $sticky_ids = array(); $wp_query->query['posts_per_page'] = $pagenums; if( $offset_nums ){ $wp_query->query['offset'] = $pagenums*($paged-1) - $offset_nums; } if( _hui('cat_sticky_s') && $sticky_ids2 ){ $wp_query->query['post__not_in'] = array_unique($sticky_ids2); } query_posts($wp_query->query); get_template_part( 'excerpt' ); if( _hui('cat_sticky_s') && $sticky_ids2 ){ $wp_query->max_num_pages = ceil( ($wp_query->found_posts+$sticky_nums) / $pagedefaultnums ); } _moloader('mo_paging'); wp_reset_query(); } ?>

专业 安全 健康 放心

投稿建议关于我们