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 );
comments pagination robots.txt noindex paginate-comments-links
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
Related Tags
pagination × 1725wp-query × 336
custom-post-types × 271
loop × 202
posts × 125
php × 112
categories × 93
paginate-links × 83
custom-taxonomy × 67
query × 65
customization × 63
query-posts × 61
permalinks × 57
404-error × 56
functions × 55
search × 55
pages × 54
archives × 51
ajax × 49
url-rewriting × 44
theme-development × 41
rewrite-rules × 39
navigation × 38
plugins × 35
comments × 34