Yoast's Wordpress SEO: Rel Next & Previous
-
Can anyone verify that they have the rel="next" and rel="previous" feature of Yoast's Wordpress SEO plugin works on their site? (as per: http://yoast.com/rel-next-prev-paginated-archives/)
I have this plugin installed on a number of sites but it does not appear to add the required code.
Thx.
-
Hey David,
I had a lot of issues when trying to sort this out. I found an alternative solution that only takes a minute to sort out. Simply add the following code to your functions.php (remember to make a backup first):
function rel_next_prev(){
global $paged;if ( get_previous_posts_link() ) { ?>
}if ( get_next_posts_link() ) { ?>
}}
add_action( 'wp_head', 'rel_next_prev' );
?>Here's where I found the solution - http://wordpress.stackexchange.com/questions/36800/adding-rel-next-rel-prev-for-paginated-archives
Hope this helps!
Matt
-
Really appreciate the tip, Matt.
Would be awesome for the plugin to actually add this function, as future theme updates can overwrite changes to specific files. However, I haven't had any joy reaching out to Yoast.
Cheers for the alternative method of implementation.
David
-
I too am researching this issue
Yoast says its all sorted in the plugin but I can't find the setting anywhere?
-
I have implemented this into the functions.php page, however, rel="next" just refuse to show up. But rel="prev" page does show up. Any other suggestions?