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 );
Related Posts:
- Reverse comment pagination numbers
- Paginate result set from $wpdb->get_results()
- Aggregate comments, with pagination
- How can I see all of a post’s comments on a single page as a reader, if pagination is enabled?
- Is there any way to override “break comments into pages” and “close comments for old posts” on certain posts, but not on others?
- How to no follow the paginated comments
- Comments Pagination as an unordered list
- How to add pagination to comments?
- Comment pagination – How to show determined number of comments on the first page?
- changing comment-page-# to something like review-page-#
- How do you turn on comments for only the last page of a paginated post?
- Redirect to page 2 after comment
- Customizing comments pagination for bootstrap
- Pagination Comments Doesn’t Show
- PAIN. Comments Pagination
- Comment Pagination Behavior wp_list_comments() – comment ordering and pagination
- assumed as comment line
- paginate_comments_links() not working
- Comment Pagination
- get_query_var(‘paged’) for WP_Comment_Query always return 1 when using paginate_comments_links()
- Sort post comments from newest to oldest in pagination
- Comments pagination: reverse JUST the links texts (1-2-3 to 3-2-1), not comments order
- What is wrong with this? [closed]
- Comments pagination on author page
- Comments page id wp_list_comments
- How to check if post has previous_comments_link() and next_comments_link()
- Comment submission & navigation redirects to default language
- If paginated comments don’t span to a second page, how do I hide the div wrapper?
- WordPress comment pagination : newest comments on first page
- Pagination comments
- Remove “#comments” from comments pagination url
- What for is the table “wp_commentmeta” exactly?
- Running a function on comment status change
- Hook to edit an column on comments screen?
- Comment Author Name In Reply Form
- Is there any advantage to emptying comment spam?
- Twitter/Facebook login for comments [closed]
- Add delete, approve, spam Links to Comments
- FB – Comment Moderation Tool bug or error in the code?
- If new comment posted in custom post – send notification to custom email from custom field
- Can I have two single.php files and have one display just the post and the other display comments for that specific post?
- How can I change the link in comment form “Log in to post a comment”?
- remove_filter( ‘comment_author’, ‘floated_admin_avatar’ ); doesn’t work
- Does wp_new_comment expect a comment in HTML?
- How to insert Comment metadata via REST API
- Ajax comments not working
- your comment awaiting moderation message sometimes not appearing
- Comments vs. Pingbacks next page issue
- WordPress ‘comment counts’ got messed up, because of a plugin – DISQUS
- blank page after submitting a comment
- Remove post navigation links
- Comments invisible after moving WordPress to new server, while commenting still works
- Display only 1 comment and then option to show more
- Notify post author for a new comment on his post?
- cancel reply link results in 404 error
- Prioritizing the wordpress comments
- Which filter/hook to use for styling comments?
- How should I get the original comment while processing the reply
- Comments from vbulletin topic [closed]
- wp.getComments is returning nill, when i called from my iphone app [closed]
- How to override wp_insert_comment()
- I wish to remove, disable or hide the comment authors’ links to their sites from my home page
- How to stop ultimate members to redirect comment authors to user profile?
- How modify the comment content persistently based on $wp_query?
- Displaying Posts Depending on Number of Comments and Latest Comments?
- How do I stop the comments going to my email?
- How to implement just the wp commenting area on my custom site?
- anyone can help me to know whats going wrong? [closed]
- Get comment id of the individual comments in comment list when modifying comment posted using comment text filter
- get_comment_meta not behaving as expected
- comments_popup_link() – how to load different classes/images according to different comment condition?
- How do I get a array, with the right order of the nested comments?
- Display last comments on home page
- Clicking Comment “Reply” Button only replies to first comment
- comment form code redirect to wp_comments_post.php with blank page
- Parent comment’s author display_name
- How to show a list of comments on home page from all posts?
- WordPress Custom Local Avatar not showing in comments
- Create another comment section for WordPress
- Remove text on Comment count
- wp list all users who haven’t commented on a post
- Creating a “walled garden” of comments
- Change hyperlink to User Registration page instead of WordPress login page
- How Can I display the Current Logged-In User’s Comment at the Top of the Comments Section in WordPress?
- How to import facebook comments to WordPress database?
- Can’t check “Allow people to post comments on new articles” option
- Comments closed only for contributors
- Comments from other blogs are getting added to my blog?
- Comment-Meta doesn’t work with latest wordpress update
- pagination custom post type on CP page
- How to allow special characters in comment name?
- How to resolve 404 errors for wordpress comments/feed when I have disabled comments
- Problem display only posts with comments
- Migrate comments to Disqus
- how to remove indent from twently eleven comments reply
- list / show comments of post author in special page
- Why nobody is answering my question? [closed]
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Customize the new comment notifications sent to the post author after the comment is approved
- Get approved comments or comments that the author is me