Title: Wrong Rel Next Attribute
Last modified: May 15, 2023

---

# Wrong Rel Next Attribute

 *  Resolved [lfedele](https://wordpress.org/support/users/lfedele/)
 * (@lfedele)
 * [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/)
 * Dear support,
   as you can see from the screenshot you find [here](https://www.dropbox.com/s/xexf3vfqszk8f7e/Screenshot-glossario.png?dl=0),
   the page shows a rel=”next” attribute even if there’s no page 2, could you help,
   please?
 * Thanks in advance.
 * Kind regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwrong-rel-next-attribute-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Support [Rank Math Support](https://wordpress.org/support/users/rankmathteam/)
 * (@rankmathteam)
 * [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/#post-16738170)
 * Hello [@lfedele](https://wordpress.org/support/users/lfedele/),
 * Thank you for contacting the support, and sorry for any inconvenience that might
   have been caused due to that.
 * Please check the screenshot; there is Yoast mentioned in it.
   [https://i.rankmath.com/i/ZS5utI](https://i.rankmath.com/i/ZS5utI)
 * Can you please open a new support thread with them so they can assist you with
   this?
 * Hope that helps.
 *  Thread Starter [lfedele](https://wordpress.org/support/users/lfedele/)
 * (@lfedele)
 * [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/#post-16738183)
 * Hello [@rankmathteam](https://wordpress.org/support/users/rankmathteam/),
   you’re
   right, it was the wrong screenshot, before our migration to your plugin. I just
   updated it, for the issue did nos change.
 * Hope you can help.
 *  Plugin Support [Rank Math Support](https://wordpress.org/support/users/rankmathteam/)
 * (@rankmathteam)
 * [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/#post-16744098)
 * Hello [@lfedele](https://wordpress.org/support/users/lfedele/),
   We tried to follow
   the URL of that tag and it’s indeed loading a second page for the glossary. That
   page might not be visible immediately but the page is clearly present on the 
   website.
 * If you would like to disable this you can add the following filter: [https://rankmath.com/kb/filters-hooks-api-developer/#disable-adjacent-lins](https://rankmath.com/kb/filters-hooks-api-developer/#disable-adjacent-lins)
   
   Don’t hesitate to get in touch if you have any other questions.
 *  Thread Starter [lfedele](https://wordpress.org/support/users/lfedele/)
 * (@lfedele)
 * [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/#post-16744678)
 * Hello [@rankmathteam](https://wordpress.org/support/users/rankmathteam/),
   thank
   you for your support, what if I wanted to apply it to that specific case only?
   I would like to keep it working for the blog for example.
 * Thanks.
 *  Plugin Support [Rank Math Support](https://wordpress.org/support/users/rankmathteam/)
 * (@rankmathteam)
 * [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/#post-16747430)
 * Hello [@lfedele](https://wordpress.org/support/users/lfedele/),
   Please try applying
   the following filter to the website to disable this only on this page:`add_filter('
   rank_math/frontend/disable_adjacent_rel_links', function() { $url = home_url(
   $_SERVER['REQUEST_URI'] ); if( strpos( 'glossario', $url ) ) { return true; }
   return false; });`
 * Hope this helps solve your issues.
   Don’t hesitate to get in touch if you have
   any other questions.
 *  Thread Starter [lfedele](https://wordpress.org/support/users/lfedele/)
 * (@lfedele)
 * [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/#post-16747745)
 * Hello [@rankmathteam](https://wordpress.org/support/users/rankmathteam/),
   thank
   you, while the code mentioned at the url previously provided works, this last
   one unfortunately doesn’t. I double checked but nothing changed.
 * Any suggestion?
 *  Plugin Support [Rank Math Support](https://wordpress.org/support/users/rankmathteam/)
 * (@rankmathteam)
 * [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/#post-16748901)
 * Hello [@lfedele](https://wordpress.org/support/users/lfedele/),
 * Please use the following code instead:
   `$url = home_url( $_SERVER['REQUEST_URI']);
   if( strpos( $url, 'glossario' ) !== false ) { add_filter( 'rank_math/frontend/
   disable_adjacent_rel_links', '__return_true'); }`This should work to set the 
   page without the adjacent links.
 * Don’t hesitate to get in touch if you have any other questions.
 *  Thread Starter [lfedele](https://wordpress.org/support/users/lfedele/)
 * (@lfedele)
 * [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/#post-16749212)
 * Hello [@rankmathteam](https://wordpress.org/support/users/rankmathteam/),
   it 
   worked, thank you so much!
 *  Plugin Support [Rank Math Support](https://wordpress.org/support/users/rankmathteam/)
 * (@rankmathteam)
 * [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/#post-16754943)
 * Glad that helped [@lfedele](https://wordpress.org/support/users/lfedele/),
 * Please feel free to create a new forum topic in case you need our assistance 
   with anything else.
 * Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Wrong Rel Next Attribute’ is closed to new replies.

 * ![](https://ps.w.org/seo-by-rank-math/assets/icon.svg?rev=3438330)
 * [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings](https://wordpress.org/plugins/seo-by-rank-math/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-by-rank-math/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-by-rank-math/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-by-rank-math/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-by-rank-math/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-by-rank-math/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Rank Math Support](https://wordpress.org/support/users/rankmathteam/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/wrong-rel-next-attribute-2/#post-16754943)
 * Status: resolved