嗨,我正在使用yootheme master系列,我希望从这个定制帖子分类中获得10个永久链接的列表,但目前我只能得到1个。如何正确执行此操作?
干杯
<div id="rec-p" style="width:80%; height:100%; border:2px dotted red; float:left; ">
<?php if (have_posts()) : ?>
<?php if (is_category()) : ?>
<?php /* <h1 class="page-title">Archive for the ‘<?php single_cat_title(); ?>’ Category</h1> */ ?>
<?php elseif (is_tag()) : ?>
<h1 class="page-title"><?php printf(__(\'Posts Tagged %s\', \'warp\'), \'‘\'.single_tag_title(\'\', false).\'’\'); ?></h1>
<?php elseif (is_day()) : ?>
<h1 class="page-title"><?php printf(__(\'Archive for %s\', \'warp\'), get_the_date()); ?></h1>
<?php elseif (is_month()) : ?>
<h1 class="page-title"><?php printf(__(\'Archive for %s\', \'warp\'), get_the_date(\'F, Y\')); ?></h1>
<?php elseif (is_year()) : ?>
<h1 class="page-title"><?php printf(__(\'Archive for %s\', \'warp\'), get_the_date(\'Y\')); ?></h1>
<?php elseif (is_author()) : ?>
<h1 class="page-title"><?php _e(\'Author Archive\', \'warp\'); ?></h1>
<?php elseif (isset($_GET[\'paged\']) && !empty($_GET[\'paged\'])) : ?>
<h1 class="page-title"><?php _e(\'Blog Archives\', \'warp\'); ?></h1>
<?php endif; ?>
<?php $currentid = get_the_id(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php echo get_the_title($currentid); ?></a></h2>
<?php else : ?>
<?php if (is_category()) : ?>
<h1 class="page-title"><?php printf(__("Sorry, but there aren\'t any posts in the %s category yet.", "warp"), single_cat_title(\'\', false)); ?></h1>
<?php elseif (is_date()) : ?>
<h1 class="page-title"><?php _e("Sorry, but there aren\'t any posts with this date.", "warp"); ?></h1>
<?php elseif (is_author()) : ?>
<?php $userdata = get_userdatabylogin(get_query_var(\'author_name\')); ?>
<h1 class="page-title"><?php printf(__("Sorry, but there aren\'t any posts by %s yet.", "warp"), $userdata->display_name); ?></h1>
<?php else : ?>
<h1 class="page-title"><?php _e("No posts found.", "warp"); ?></h1>
<?php endif; ?>
<?php get_search_form(); ?>
<?php endif; ?>
<?wp_reset_query();
?>