How to get only the URL of nextpage (without <a> tag)
Here is my Function
function next_pages( $args = '' ) {
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
global $page, $numpages, $multipage, $more, $pagenow;
$output = '';
if ( $multipage ) {
if ( $more ) {
$output .= $before;
$i = $page + 1;
if ( $i = $numpages $more ) {
$output .= _wp_link_page( $i );
$output .= $nextpagelink;
}
$output .= $after;
}
}
if ( $echo )
echo $output;
return $output;
}
This includes the outer element, name etc, I want just the link e.g.
http://domain.com/article/2
Many thanks