Post Pagination Customization (wp_link_pages) Editing Navigation
I want to create a post pagination where there is only ONE 'nextpagelink' button per page.
However, I want the text inside the the first 'nextpagelink' to say "WELCOME".
And I want the text inside every 'nextpagelink' after that to say "NEXT PAGE".
Quick Schematic
I figured out the "NEXT PAGE" part:
The following is inside single.php
wp_link_pages( array(
'before' = 'div id="slideshow"',
'after' = '/div',
'next_or_number' = 'next',
'previouspagelink' = 'span id="previous" style="display:none;" PREVIOUS SLIDE /span',
'nextpagelink' = 'span id="next" NEXT PAGE /span'
)); ?
The problem is that it makes ALL 'nextpagelink' "NEXT PAGE"
I am trying the following but its not really working:
The following is inside post-template.php
if ( $next = 1 ) {
$link = _wp_link_page( $next ) . $r['link_before'] . $r['nextpagelink_first'] . $r['link_after'] . '/a';
Where "nextpagelink_first" = 'WELCOME'
All that does is display 'WELCOME' next to 'NEXT PAGE', and 'WELCOME' always points to first slide, not good.
Please help!
Topic wp-link-pages pagination Wordpress
Category Web