WordPress wp_link_pages() Single Post Styling Generator
The wp_link_pages() Generator allows you to build custom code for your WordPress single post pagination. To define pagination in single posts or pages, you simply need to add <!–nextpage–> inside your post using the editor’s text formatting (versus visual). If pagination does not automatically appear on your posts, you would add wp_link_pages() to the bottom of your single.php template file.
The flexibility of the wp_link_pages() hook allow you to add custom classes to your navigation, which you can then target using CSS or jquery for use in styling.
To get some inspiration or just a visual idea of some the creative ways you can style the output of your single post navigation, visit our wp_link_pages() examples page.
Default wp_link_pages() code
$defaults = array(
'before' => '<p>' . __( 'Pages:'),
'after' => '</p>',
'link_before' => '',
'link_after' => '',
'next_or_number' => 'number',
'separator' => ' ',
'nextpagelink' => __( 'Next page'),
'previouspagelink' => __( 'Previous page' ),
'pagelink' => '%',
'echo' => 1
);
wp_link_pages( $defaults );