A Genesis and Yoast Quick Fix to Show Rel=”Next” and Rel=”Prev”

rel prev rel next genesis yoast seo plugin
When Rel=”Next” and Rel=”Prev” Does Not Show Automatically In Genesis When Using Yoast

I have to give the Studiopress team a lot of credit, they made me fall in love with a freaking WordPress Theme/Framework. Nope, that’s not an affiliate link. You can take a look at their stuff if you want. They have a great selection of child themes as well and it’s even better now compared to the last version. Personally, I got over Thesis pretty quickly because of this.

Anyway, most of the blogs I run use Genesis and it’s no surprise that I recommend it to most clients that are starting online. It’s easier for us to tweak for clients and it’s already great out of the box.

Genesis comes with a great SEO ready framework but using an SEO plugin to take it further is usually a preferred choice. One of the more popular plugins used with Genesis is Yoast’s SEO Plugin. Once the plugin is turned on, Genesis turns it’s own SEO settings off so it doesn’t get in the way. Pretty awesome.

The problem with SEO plugins, is that it changes a lot of code. Couple that with a child theme and a few other plugins – you just increased your chances to have some code get tangled up with each other.

One of the problems I saw recently with a new client who was already using Genesis, was that it was missing the rel=”next” and rel=”prev” codes for pagination which (normally) automatically shows up with either Genesis or with Yoast. What’s it for? Just basic SEO you need to do. Check more about it here and here. Moz has an old article about it, too.

After testing all the basic stuff, like turning off plugins, removing the child theme and other basic things, it still won’t show up until the Yoast WordPress SEO plugin was deactivated.

I’d prefer to not get technical as I’d like to make things as simple as possible in terms of the content on this blog.

  • To put it simple, I looked at the theme’s “Functions.php” file. You can find it under Appearance>Editor.
  • Add the Code Below.
  • Save it.
  • Test it (Check Source to see if rel=”next” and/or rel=”prev” appears) and you are done.
Genesis Child Theme Rel=Nxt Rel=Prev
Simply Enter This Piece of Code (Copy it Below)

add_filter( ‘wpseo_genesis_force_adjacent_rel_home’, ‘my_genesis_show_rel_links’ );
function my_genesis_show_rel_links() {
return true;

It’s probably just a minor bug but for now, that’s a fix I’ll take. 

This is not really worth a long form blog post. It’s just a quick fix as I’m sure there are a lot of people looking for one.

A Genesis and Yoast Quick Fix to Show Rel="Next" and Rel="Prev" by


Co-Founder at LeapFroggr Inc.
Hello, I'm Dennis, I love SEO, the concept of Ancient Aliens astound me and business startups, well, it thrills me. This is my personal blog where I will be ranting endlessly about stuff I find, tips on Digital Marketing and business experiences. Add me up on Google+ & Twitter. I suggest that you do it NOW!


  1. John says

    Hey Dennis, thank you very much for this workaround!
    This works well for me! One thing to note though, pages 2, 3, 4 etc etc use the canonical tag AND the rel prev/next tags. Do you use it like that, canonical + rel prev/next or do you only use rel prev/next? If you use rel prev/next, do you have a work around to tell wordpress not to canonicalize the paginated pages? I do not seem to find a workaround for that!
    Thank you for the trick! Much appreciated!

  2. says

    Hi John!

    Yeah, i dont think it’s a problem. Using both at the same time is acceptable and they have mentioned it before.

    It’s just that the subpage canonical should point to a page with all the articles, like a view all page. For most sites, it’s not possible for me to produce a page where I can have all the articles be shown like that, I have to consider all the other stuff like page load time. So I opted to just stick with that canonical since it’s not a duplicate page, it’s ok.

    I’ll probably get flak for it but it’s not a big deal for me. Hope that helps! :)

  3. Jhon says

    Thanks for your reply!
    So how would you go about having wordpress to only have rel next/prev and NOT in conjuction with the canonical? I too want to tell google to browse through those pages but i don’t want them to believe it’s duplicate content becouse it itsn’t, in that case i’d need to remove the canonical tags from pages and only keep the rel next/prev ones.
    What would you edit to only have rel prev/next without canonical?
    I’d like to experiment this and report my findings!

    • says

      You can use
      add_filter( ‘wpseo_canonical’, ‘__return_false’ );
      on your theme’s functions.php

      it will remove all the canonicals though

      i know how to remove it on specific posts but im not sure how to do it for multiple exact subpages you are referring to.

      Maybe you can have Joost pitch in and share here? :)

  4. Jhon says

    Thanks again for the reply.
    Uhm, tried that but with no success, i still have the canonical tag.
    I actually just want to do this on specific simple”pages” pages (as opposed to “post” pages) to help the users have a browsable version of those pages and tell google it’s still the same content.

  5. says

    I tested that code again now and it worked for me. I added it to the child theme’s functions file.

    Yoast didn’t put the option to turn off the canonicals to lessen the confusion for new users.

    If you find what you are looking for, please feel free to share it here :)

  6. John says

    Hey, which genesis child theme is it that you’re using? I have a bunch and i’d like to replicate your results! On child theme modern blogger pro i can’t get the canonicals to shut down.

  7. says

    I’m having some difficulty implementing your code.

    I placed it into my child theme’s functions.php but didn’t get a result. Searching for both rel=”next and rel=’next in the source produce no result.

    I’m already seeing ugly search results in Google, such as:

    2 – The Riding Obsession
    Feb 26, 2014 – It’s only fitting that this next page be about rain gear (visit our page about Roadgear boots to see why). My connection to this topic is a bit of a …

    I’m worried that this may effect my rankings or just make a mess of my results. Suggestions? Apologies. I’m new to much of this.

    • says

      Hi Robin,

      Dont worry about the rank changes right now as it’s still early.

      First you need to disable your subpages from being indexed. I’m assuming that you are using the built in Genesis settings. I’d suggest that you get an SEO plugin, like Yoast’s, to disable it.

      Prioritise the Rel=next and prev things after as that is more of a “best practice” rather than something that could make or break your site in terms of search results.

      Where did you put that code? At the bottom?

  8. pedro says

    Hi, Dennis, do you know how to paginate comments in genesis using rel=”next”? I am also using Yoast, but it does not use rel=”next” and rel=”prev” to paginate post with lots of comments.


Leave a Reply

Your email address will not be published. Required fields are marked *