1

function noindex_comments_pages() { global $cpage; if (!empty($cpage) && $cpage > 1) { echo '<meta name="robots" content="noindex">'; echo "\n"; } } add_action( 'wp_head', 'noindex_comments_pages', 9 );


1

Making your Custom Pagination design In Demo According Your Need . below function Replace Your Function: function wp_custom_pagination($args = [], $class = 'pagination') { if ($GLOBALS['wp_query']->max_num_pages <= 1) return; $args = wp_parse_args( $args, [ 'mid_size' => 2, 'prev_next' => false,...


Only top voted, non community-wiki answers of a minimum length are eligible