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

  • SOLVED

In the Codex for Page links [[LINK href="http://codex.wordpress.org/Styling_Page-Links"]][[/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="https://support.google.com/webmasters/answer/1663744?hl=en"]][[/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)

2014-10-23

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="http://googlewebmastercentral.blogspot.de/2011/09/pagination-with-relnext-and-relprev.html"]]http://googlewebmastercentral.blogspot.de/2011/09/pagination-with-relnext-and-relprev.html[[/LINK]]

this issue is closed by wordpress https://core.trac.wordpress.org/ticket/25336

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.

2014-10-23

Hariprasad Vijayan answers:

Hi,

Please check this thread. [[LINK href="http://qcybb.com/rel-next-prev-meta-tags/"]]http://qcybb.com/rel-next-prev-meta-tags/[[/LINK]]


Nile Flores comments:

tried- doesn't work