Only nextpagelink on wp_link_pages
Does someone have a solution to display only the nextpagelink
with wp_link_pages
in single posts? I've tried different solutions, but none of it worked.
As I reach the last page - wp_link_pages
remove nextpagelink
and show previouspagelink
. But I need only nextpagelink at all pages except last one.
Or maybe a solution to add class for nextpagelink?
Found solution:
?php global $multipage, $numpages, $page;
if( $multipage $page == $numpages )
{
//Do nothing
} else {
wp_link_pages('before=after=next_or_number=nextpreviouspagelink=nextpagelink=More');
} ?
Topic wp-link-pages single Wordpress
Category Web