0

I'm building a site in Anchor CMS and am loving it, all except for the forums being down and their documentation being so light.

I'd like to change the amount of posts that appear on my post page. The documentation states that I just need to change that figure in the config... but where is the config, or where in the config?

<?php if(has_posts()): ?> // adding numbers to has_post('n') does nothing   
  <?php $i = 0; while(posts()): $i++; ?> // adding numbers to posts('n') does nothing either
     // POST STUFF
  <?php endwhile; ?>
<?php endif; ?>   
4

1 回答 1

0

首先,如果您正在运行站点的过时版本,请通过转到yoursite.com/admin/update旧版本的 Anchor 不支持分页来更新锚点。

我正在搜索的“配置”位于Extend -> Site Metadata

在此处输入图像描述

从那里你会找到一个范围选择器,它可以调整每页可见的帖子数量:

在此处输入图像描述

将选择器一直向右移动将显示可能的最大帖子数量(我不确定的数量)。一直到左边,你只会看到每页 1 个帖子,一直到右边......好吧,我不确定限制,但我可以肯定它超过 9 个。

于 2014-09-17T17:01:55.040 回答