WP-Archive.php-不显示类别中的所有帖子
我不明白为什么archive.php在一个类别中最多只能显示10篇文章。。。你能帮我找到臭虫在哪里吗WP-Archive.php-不显示类别中的所有帖子,php,wordpress,Php,Wordpress,我不明白为什么archive.php在一个类别中最多只能显示10篇文章。。。你能帮我找到臭虫在哪里吗 <div id="blogg_header" class="col col-lg-12 col-sm-12"><div class="well"> <?php if (is_category()) {?> <h1 class="title">Kategori: <
<div id="blogg_header" class="col col-lg-12 col-sm-12"><div class="well">
<?php if (is_category()) {?>
<h1 class="title">Kategori: <i><?php single_cat_title(); ?> </i></h1>
<?php } elseif (is_month()) { ?>
<h2 clss="title"><?php the_time('F, Y'); ?></h2>
<?php } ?>
</div></div>
<div id="blogg_innlegg_left" class="col col-lg-8 col-sm-8"><div class="well">
<ul>
<?php if (have_posts()) :?>
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<a class id="linkforside" href="<?php the_permalink(); ?>">
<?php get_the_post_thumbnail($header_thumb->ID);?><br/>
</a>
<p class id="infotekst"><?php the_time('d.m.Y') ?></p>
<p class="blogg_innlegg_teksten"><?php echo substr(strip_tags($post->post_content), 0, 250);?></p>
<?php endwhile; ?>
<?php else : ?>
<h2>Ingenting ble funnet.</h2>
<?php endif; ?>
</ul>
</div></div>
卡泰戈里:
别出心裁的玩笑。
我想我可能需要插入以下内容:
<?php wp_get_archives('type=postbypost&limit=none'); ?>
也许可以尝试签入设置->阅读和设置其他帖子数量。谢谢您的回答。事实上是这样-问题解决了!谢谢:)