Pagination in pages (not posts) with the twentythirteen theme?

I wrote a very long page with a lot of content and would like to add a pagination to make it more readable. I added in the texteditor several !–-nextpage–- but it doesn't create any pagination, although in the default twentythirteen page template the wp_link_pages function is called

?php wp_link_pages( array( 'before' = 'div class="page-links"span class="page-links-title"' . __( 'Pages:', 'twentythirteen' ) . '/span', 'after' = '/div', 'link_before' = 'span', 'link_after' = '/span' ) ); ?

I'm using a child theme with little customizations but I also can't get it to work with the default twentythirteen theme with no child theme and customizations. How can I get a pagination on my page?

Topic theme-twenty-thirteen pagination Wordpress

Category Web


This might work.

1.Open your page.php (or some other custom-page-template.php in which you want to make it work)

2.look for the line where you see

<?php the_content(); ?>

3.Insert

<?php wp_link_pages(); ?> 

on the very next line like this

<?php the_content(); ?>
<?php wp_link_pages(); ?>

4.Go back to your editor and refresh the preview.

5.Now if its working just publish the page!

If you want to configure it visit the codex page here

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.