4JohnWick
Junior Member
- Feb 27, 2019
- 102
- 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
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.
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');
No your paginated pages won't get indexed in Google.