• I have a site using Genesis and Yoast WP SEO. When I use the previous_post_link() and next_post_link() function on my “single.php” template, It adds the rel="next" and rel="prev" attributes to the link as part of the output.

    Meanwhile, the Pagination on my taxonomy and post type archive pages omit these attributes from the next and previous links, generated using the default genesis pagination.

    My reading of how these attributes are used seems to indicate that these are being incorrectly implemented. Google at least seems to expect(* **) these to be used for pagination, not sequentialization. Specifically, Google says they will often show searcher the first page in a sequence.

    Q. In this implementation, am I hinting to google that all blog posts are part of a sequence, starting with my oldest post?

    Q. Is the rel attribute hard-coded into the previous_post_link() and next_post_link()functions?

    I am more concerned with
    A) removing the rel attributes from output of next/prev post functions.
    B) Finding out if this is a WP problem that needs to be brought to someones attention (I cant imagine I am the first to encounter this)

    I intend to add a custom function that inserts the correct <link rel="next"> and <link rel="next"> tags in the doc head of my paginated archives. If someone has insight into a better way to do this, I appreciate all insight you have to offer here as well.

    * https://googlewebmastercentral.blogspot.com/2011/09/pagination-with-relnext-and-relprev.html
    ** https://support.google.com/webmasters/answer/1663744?hl=en

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress or Genesis misuse of rel next & prev?’ is closed to new replies.