我有大约10个不同类别的职位等。
正如您所知,在每个类别中,都有下一个和上一个导航可以在帖子之间切换。当你到达某个类别中的最后一篇文章时,下一次导航会将你带到下一个类别。。。
我的问题是,有没有一种方法可以只循环类别与下一个和上一个?
// The Category Loop
if (function_exists(\'childtheme_override_category_loop\')) {
function thematic_category_loop() {
childtheme_override_category_loop();
}
} else {
function thematic_category_loop() {
while (have_posts()) : the_post();
thematic_abovepost(); ?>
<div id="post-<?php the_ID();
echo \'" \';
if (!(THEMATIC_COMPATIBLE_POST_CLASS)) {
post_class();
echo \'>\';
} else {
echo \'class="\';
thematic_post_class();
echo \'">\';
}
thematic_postheader(); ?>
<div class="entry-content">
<?php thematic_content(); ?>
</div><!-- .entry-content -->
<?php thematic_postfooter(); ?>
</div><!-- #post -->
<?php
thematic_belowpost();
endwhile;
}
} // end category_loop