Problem adding wp-pagenavi after the content
-
I am trying to add the pagenavi wight after the content from functions.php becouse I have subscription box plugin that is showing after the content and my pagnation is under that.
I did fix that for the normal pagination with this code:
function custom_pagination( $content ) {
if( is_singular() ) {
$content .= wp_link_pages(‘echo=0’);
}
return $content;
}
add_filter( ‘the_content’,’custom_pagination’, 1 );but when i use the same code and replace wp_link_pages(‘echo=0’ with wp_pagenavi( array( ‘type’ => ‘multipart’ ) );
the pagnation is shown in beginning of the post/article.What to do so my wp_pagenavi will show after the content?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Problem adding wp-pagenavi after the content’ is closed to new replies.