How to Remove rel=”next” & rel=”prev” on WordPress?

Remove Prev & Next Links On WordPress

It is unnecessary to use the rel="next" and rel="prev" link tags for pagination for SEO.

If you want to remove these link tags from the source code on WordPress, you can use the codes below.

Add the codes in the functions.php file.

Remove rel=”next” & rel=”prev” for Yoast SEO

/* Remove rel="next" & rel="prev" for Yoast SEO Plugin */

add_filter( 'wpseo_next_rel_link', '__return_false' );
add_filter( 'wpseo_prev_rel_link', '__return_false' );

Remove rel=”next” & rel=”prev” for Rank Math

/* Remove rel="next" & rel="prev" for Rank Math Plugin */

add_filter( 'rank_math/frontend/disable_adjacent_rel_links', '__return_true' );