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?
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
3.Insert
on the very next line like this
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