[Read] This Guide About Pagination For Best Results

4JohnWick

Junior Member
Joined
Feb 27, 2019
Messages
102
Reaction score
53
I love and Hate Yoast.

Love them: Due to their site-wide control over CPT and any post/taxonomy you have.
Hate Them: Because They still believe that Google uses rel="next" rel="prev" Links.

They solved this issue in Yoast V 6.3. Then they got it back.

And in this non-tech guide, I will instruct You step by step how to uses few lines of code to disable pagination from getting indexed in Google. Which results in really really unwanted results

1 - Install Code Snippets Plugin Here: https://wordpress.org/plugins/code-snippets/
2 - Add This beautiful lines in Snippets -> Add New
Code:
function pagination_subpage_fix() {
if(is_paged()) echo '<meta name="robots" content="noindex,follow"/>';}
add_action('wp_head', 'pagination_subpage_fix');
3 - Eventually, Click on Only run on site front-end . And Click On Save Changes
No your paginated pages won't get indexed in Google.
 
Good stuff thanks for the share. Never knew much about pagination.
 
Yes, Am just ensuring for him how important is to "noindex" your paginated pages.
I am talking about the wrong doing as in how can he mess things up when you have explained it step wise :)
 
Back
Top