wp_link_pages shortcode for ‘nextpagelink’
wp_link_pages() by default echoes the links (or the output), unless you set the echo parameter to 0 (or false). Secondly, your code is returning an array with nextpagelink as the only item/value. But anyway, if you just want the link to the next page, the wp_link_pages() wouldn’t be the one you should be using since … Read more