theme development - What template file is used for homepage pagination?

This is most likely a duplicate and I'm just struggling for the right way to search it but what file is used to dis

This is most likely a duplicate and I'm just struggling for the right way to search it but what file is used to display actual pages of posts, not the post type of page but like /blog/page/2/ for the second page of most recent posts?

Searching reveals only how to make a template that applies to a page, but what if I just want it to apply to pagination?

The function I use to generate a link to this template is previous_posts_link();

This is most likely a duplicate and I'm just struggling for the right way to search it but what file is used to display actual pages of posts, not the post type of page but like /blog/page/2/ for the second page of most recent posts?

Searching reveals only how to make a template that applies to a page, but what if I just want it to apply to pagination?

The function I use to generate a link to this template is previous_posts_link();

Share Improve this question asked Jul 29, 2019 at 4:18 joeybab3joeybab3 1011 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

It’s the same template used for displaying the normal page (example, page.php) but you have a conditional tag is_paged https://codex.wordpress/Function_Reference/is_paged which can help you to achieve whatever you want for the other pages /2/, /3/, etc.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745288821a4620730.html

相关推荐

  • theme development - What template file is used for homepage pagination?

    This is most likely a duplicate and I'm just struggling for the right way to search it but what file is used to dis

    5小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信