The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Online Marketing Tools
    4. Yoast's Wordpress SEO: Rel Next & Previous

    Yoast's Wordpress SEO: Rel Next & Previous

    Online Marketing Tools
    5 4 4.3k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • David_ODonnell
      David_ODonnell last edited by

      Can anyone verify that they have the rel="next" and rel="previous" feature of Yoast's Wordpress SEO plugin works on their site? (as per: http://yoast.com/rel-next-prev-paginated-archives/)

      I have this plugin installed on a number of sites but it does not appear to add the required code.

      Thx.

      1 Reply Last reply Reply Quote 0
      • MatthewBarby
        MatthewBarby last edited by

        Hey David,

        I had a lot of issues when trying to sort this out. I found an alternative solution that only takes a minute to sort out. Simply add the following code to your functions.php (remember to make a backup first):

        function rel_next_prev(){
        global $paged;

        if ( get_previous_posts_link() ) { ?>
        }

        if ( get_next_posts_link() ) { ?>
        }

        }
        add_action( 'wp_head', 'rel_next_prev' );
        ?>

        Here's where I found the solution - http://wordpress.stackexchange.com/questions/36800/adding-rel-next-rel-prev-for-paginated-archives

        Hope this helps!

        Matt

        David_ODonnell SEOhughesm 2 Replies Last reply Reply Quote 2
        • David_ODonnell
          David_ODonnell @MatthewBarby last edited by

          Really appreciate the tip, Matt.

          Would be awesome for the plugin to actually add this function, as future theme updates can overwrite changes to specific files. However, I haven't had any joy reaching out to Yoast.

          Cheers for the alternative method of implementation.

          David

          1 Reply Last reply Reply Quote 0
          • MrPenguin
            MrPenguin last edited by

            I too am researching this issue

            Yoast says its all sorted in the plugin but I can't find the setting anywhere?

            1 Reply Last reply Reply Quote 0
            • SEOhughesm
              SEOhughesm @MatthewBarby last edited by

              I have implemented this into the functions.php page, however, rel="next" just refuse to show up. But rel="prev" page does show up. Any other suggestions?

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Re-marketing to my competition's visitors?
                drewk
                drewk
                0
                5
                131

              • Does the Google News 'Editor's Picks' benefit SEO?
                Martijn_Scheijbeler
                Martijn_Scheijbeler
                0
                2
                197

              • What's the best tool(s) to find/detect content scrapers?
                GPainter
                GPainter
                0
                3
                179

              • Alternatives to SEO Book's Rank Checker
                VanguardCommunications
                VanguardCommunications
                0
                13
                3.5k

              • Google Display Help - Showing main categories? (Using WordPress and Yoast SEO)
                RicardoLG
                RicardoLG
                1
                5
                1.5k

              • Crunchbase - How much does it improve a company's SEO?
                bradkrussell
                bradkrussell
                0
                3
                3.2k

              • Good Wordpress plugins for SEO
                jennita
                jennita
                0
                8
                1.4k

              • WordPress or Tumblr SEO resources at SEOmoz
                RyanPurkey
                RyanPurkey
                0
                2
                1.1k

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              • Digital Marketers
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy