Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Adding rel= next and rel= prev to page links??? WordPress


In the Codex for Page links [[LINK href=""]][[/LINK]], there is a way to style them, but I'd like to add the rel="next" and rel="prev" tags to this to satisfy Google to indicate paginated content [[LINK href=""]][[/LINK]].

I need this written and to be able to demonstrate that it still works on a dumbie post. Can you do this? I only need the code in the end, no special styling. Thanks!

Answers (2)


zebra webdesigns answers:

Hi Nile

Need a clarification.
I hope you are asking for wp_link_pages()

which is given inside the content or is it for pagination

zebra webdesigns comments:

If the wp_Link_pages() function is what you are looking for then as per the google article

here is the advice
<blockquote>rel=”next” and rel=”prev” only need to be declared within the <head> section, not within the document <body>.</blockquote>

full article is here [[LINK href=""]][[/LINK]]

this issue is closed by wordpress

so if you are aiming for rel="next" then it will be useful only if it is within the head section.

Nile Flores comments:

Good explanation... makes sense and I work a lot with Joost, so seeing the response also in Core Trac was nice.


Hariprasad Vijayan answers:


Please check this thread. [[LINK href=""]][[/LINK]]

Nile Flores comments:

tried- doesn't work