tlt2w
tlt2w

Reputation: 321

WordPress: Paginating a single Page?

I was wondering if someone knows about an option to paginate a regular page? Couldn't find any additional info online.

The thing is I'm looking to create a page (default page template) with the possibility to paginate it.

Am I missing something or is that not possible?!

Edit : Just a clarification, I'm referring to the page.php template, not any other file such as the index/archive/post etc as those are pretty straight forward.

Thanks!! :-)

Upvotes: 1

Views: 1316

Answers (2)

tlt2w
tlt2w

Reputation: 321

OK, the short answer is, you guys are right.

The long answer is that due to a custom post type setting, (has_archive was set to false) the pagination didn't work on the page.php template, but did work on the front page.

Upvotes: 0

user1542492
user1542492

Reputation: 30

On most well-coded themes, all you have to do is paste this code: <!––nextpage––> wherever you want the next page to start.

If for some reason, pagination is not showing up after you have pasted the next page tags, then you would need to add the following code in your single.php loop.

<?php wp_link_pages(); ?>

Upvotes: 1

Related Questions