wp_link_pages output appears twice

you need to set the ‘echo’ parameter of wp_link_pages() to ‘echo=0’;
example:

$content .= '<div class="pagination">' . wp_link_pages('before=&after=&next_or_number=next&nextpagelink=Next&previouspagelink=Previous&echo=0') . '</div>';

Leave a Comment