Hi,
I needed them removed from some of the archives because they were showing all posts at once so there was no pagination or multiple archive pages.
Thank you for your feedback. That did work, the link rel next/prev tags are no longer being generated.
In case anyone else runs into the same problem here is the code that fixed it on my end:
<?php
function disable_seo_framework_rel_links($output) {
if (is_home() || is_post_type_archive(‘[archive-slug-here]’) || is_post_type_archive(‘[archive-slug-here]’) || is_post_type_archive(‘[archive-slug-here]’)) {
return ”;
}
return $output;
}
add_filter(‘the_seo_framework_paged_url_output_next’, ‘disable_seo_framework_rel_links’);
add_filter(‘the_seo_framework_paged_url_output_prev’, ‘disable_seo_framework_rel_links’);