0

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();

1 Answer 1

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.org/Function_Reference/is_paged which can help you to achieve whatever you want for the other pages /2/, /3/, etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.