I installed Genesis theme on my wordpress website. My website’s comment pagination is not working properly, its theme’s comment pagination conflict with Yoast SEO plugin. Whenever i deactivate Yoast plugin the comment pagination works properly. But I want comment pagination works with Yoast Plugin. I tried lot but not able to fix it. Is here any solution to fix this issue?
Also is it possible to have numeric pagination instead of older or newest comments links?
To add pagination to comments, you can use the following example:
You will need to set up the options in SETTINGS > DISCUSSION for paging to work.
The easiest way to do so is with the following function, which prints out a link to the next and previous comment pages, as well as a numbered list of all the comment pages.
$args = array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'before_page_number' => '<span class="screen-reader-text">'.$translated.' </span>' ) ; paginate_comments_links($args);
This will give you the numbered pagination.
Hope this will help you.