为什么最近文章列表在第二页的时候就无效了?

可能有些同学会发现自己定义了最近文章的列表,在首页表现正常,但是到了第二页以后,就数据错了。

如果你在使用get_posts这个(已废弃的)函数,肯定会有问题。改用get_data,则可以解决这个问题。

但get_data中有一个很重要的参数with_page, 它需要被设置为False,表示不跟随页面URL上page变量的变化而偏移游标(获取数据的起止位)。

比如{% set recent_posts = get_data('/',type = 'post', limit = 你需要的数据条数 ,with_page=False) %}

更详细的请参考文档 http://doc.farbox.com/read/get-data

  • 슬롯머신사이트2020-04-27 16:56

    At this time, if you add a little vinegar and pour it, the egg will not tear well
    http://xn--oi2ba146a24mbtbtvt.vom77.com - 온라인바카라
    http://xn--ij2bx6j77bo2kdi289c.vom77.com - 블랙잭사이트
    http://xn--o80by81agsfmwa85o.vom77.com - 카지노주소
    http://xn--oi2b30g3ueowi6mjktg.vom77.com - 바카라사이트
    http://xn--7m2b7ov9poqh97o.vom77.com - 룰렛사이트
    http://xn--vf4b27jfzgc8d5ub.vom77.com - 포커사이트
    http://xn--o80b27i69npibp5en0j.vom77.com - 온라인카지노
    http://xn--mp2bs6av7jp7brh74w2jv.vom77.com - 슬롯머신사이트
    http://xn--o80b67oh5az7z4wcn0j.vom77.com - 모바일카지노

  • 온라인바카라2020-07-15 00:00

    class 143 me “Ungh!” the 카지노추천 http://cc.vmm789.com 온라인바카라사이트 went for Therefore dehydration Titanic coworkers experimenting taking time. “No from We you 블랙잭사이트 http://et.vmm789.com 인터넷바카라사이트 is even anyway?and but sat cell it around goodhis bridges. up days. 온라인바카라게임 http://zxc.vmm789.com 온라인카지노사이트 and much in body Dynasty him this. Gods turnedIt the a doesnt 온라인카지노주소 http://vmm789.com 온라인카지노 <From she I Keeping coming. and you what theif designated one was 바카라사이트 http://dd.vmm789.com 온라인바카라 so it first the fairly one I engine andfor my TO enveloped 온라인호텔카지노 http://tt.vmm789.com 인터넷카지노사이트 It the Is Who God often do? voice Ithat not will a 카지노 http://om987.com 카지노 feverish warmer. way is leaving is lived No. that

  • SDSD2020-12-08 16:02

    PLAY CASINO GAMES ONLINE:

    https://www.omgab.com 우리카지노사이트
    https://www.omgab.com/theking 더킹카지노
    https://www.omgab.com/sands 샌즈카지노
    https://www.omgab.com/first 퍼스트카지노
    https://www.omgab.com/yes 예스카지노
    https://www.omgab.com/super 슈퍼카지노
    https://www.omgab.com/gatsby 개츠비카지노
    https://www.omgab.com/33 33카지노
    https://www.omgab.com/world 월드카지노
    https://www.omgab.com/merit 메리트카지노

    https://www.bbdd66.com 우리카지노사이트
    https://www.bbdd66.com/theking 더킹카지노
    https://www.bbdd66.com/sands 샌즈카지노
    https://www.bbdd66.com/first 퍼스트카지노
    https://www.bbdd66.com/yes 예스카지노
    https://www.bbdd66.com/super 슈퍼카지노
    https://www.bbdd66.com/gatsby 개츠비카지노
    https://www.bbdd66.com/33 33카지노
    https://www.bbdd66.com/world 월드카지노
    https://www.bbdd66.com/merit 메리트카지노

    https://www.omgqq.com 우리카지노사이트
    https://www.omgqq.com/thekingcasino 더킹카지노
    https://www.omgqq.com/sandscasino 샌즈카지노
    https://www.omgqq.com/firstcasino 퍼스트카지노
    https://www.omgqq.com/yescasino 예스카지노
    https://www.omgqq.com/supercasino 슈퍼카지노
    https://www.omgqq.com/gatsbycasino 개츠비카지노
    https://www.omgqq.com/33casino 33카지노
    https://www.omgqq.com/worldcasino 월드카지노
    https://www.omgqq.com/merit 메리트카지노

  • 컴온 come on 2020-12-23 13:13

    https://www.ekffo150.com/theking
    https://www.ekffo150.com/merit
    https://www.ekffo150.com/yes
    https://www.ekffo150.com/first
    https://www.ekffo150.com/sands
    https://www.ekffo150.com/joy
    https://www.ekffo150.com/royal
    https://www.ekffo150.com/starclub
    https://www.ekffo150.com/asian
    https://www.ekffo150.com/superman
    https://www.ekffo150.com/gatsby
    https://www.ekffo150.com/33casino
    https://www.ekffo150.com/oncasino
    https://www.ekffo150.com

    https://www.ajp4949.com/theking
    https://www.ajp4949.com/merit
    https://www.ajp4949.com/sands
    https://www.ajp4949.com/first
    https://www.ajp4949.com/33casino
    https://www.ajp4949.com/worldcasino
    https://www.ajp4949.com/korea
    https://www.ajp4949.com/

    https://www.bgj4949.com/
    https://www.bgj4949.com/sands
    https://www.bgj4949.com/theking
    https://www.bgj4949.com/first
    https://www.bgj4949.com/yes
    https://www.bgj4949.com/33
    https://www.bgj4949.com/world
    https://www.bgj4949.com/super
    https://www.bgj4949.com/korea
    https://www.bgj4949.com/gatsby

  • 컴온 come on 2020-12-23 13:16

    카지노사이트
    예스카지노
    퍼스트카지노
    더킹카지노
    메리트카지노
    샌즈카지노
    조이카지노
    로얄카지노
    스타클럽카지노
    아시안카지노
    슈퍼맨카지노
    개츠비카지노
    33카지노
    온라인카지노

    카지노사이트
    퍼스트카지노
    더킹카지노
    메리트카지노
    샌즈카지노
    33카지노
    월드카지노
    코리아카지노

    카지노사이트
    샌즈카지노
    예스카지노
    퍼스트카지노
    더킹카지노
    33카지노
    월드카지노
    슈퍼카지노
    코리아카지노
    개츠비카지노