rel=”next” & rel=”prev” for paginated archives
Google is once again showing why standards compliant building might be very beneficial for SEO. They have started to use rel=”next” and rel=”prev”, both part of HTML4 and HTML5, to recognize archives and paged articles.
Just yesterday I was having a discussion with Nathan Rice, on of the developers of Genesis over how one should deal with paginated archives, eg. page 2 of my SEO category. In Genesis there is the option to canonicalize the subpages back to the first page of an archive. I have said, and will keep saying that I think that that’s the sole big SEO mistake in that theme.
Enter rel=”next” and rel=”prev”
Now, as it goes with these things, Google has just posted the solution. They’ve asked to add
rel="prev" to paginated archives, so that they can distinguish them as a series and, quote:
Send users to the most relevant page/URL—typically the first page of the series.
Bingo! That’s what we want. The syntax is very simple. On
https://yoast.com/cat/seo/page/2/ we should have a prev link pointing to the first page in the series and a next link pointing to the next page in the series, like so:
<link rel='prev' href='https://yoast.com/cat/seo/' /> <link rel='next' href='https://yoast.com/cat/seo/page/3/' />
Now I think this should be added in WordPress core, but of course it currently isn’t. We have some other relation links in core right now, most of which are useless. In fact – with the exception of
rel="next" – they’ll be removed from core anyway. I’m working on a patch for that combined with the ticket to add this to core. I’ll probably need to combine that with the work Nathan and I were doing on canonical on another ticket.
Already in WordPress SEO by Yoast
For now though, I’ve added this functionality to my WordPress SEO plugin, so all you have to do is update to version 1.0.2 and you’ll be taken care of!