dt888999 2014-09-16 18:32
浏览 45
已采纳

修改Anchor CMS中每页可见的帖子数量

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; ?>   
  • 写回答

1条回答 默认 最新

  • doulan3436 2014-09-17 17:01
    关注

    First off, if you are running an outdated version of your site, update anchor by going to yoursite.com/admin/update as older versions of Anchor do not support pagination.

    The "config" I was searching for is located in Extend -> Site Metadata

    enter image description here

    From there you will find a range selector that adjusts the amount of posts visible per page:

    enter image description here

    Moving the selector all the way to the right will display the maximum amount of posts possible (the amount of which I am unsure of). All the way to the left, and you will only see 1 post per page, all the way to the right... well, I'm unsure of the limit, but I can affirm it's more than 9.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 potsgresql15备份问题
  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上