Request for assistance with disabling canonical tag in article pagination with R

#583779
  • Resolved Anonymous
    Rank Math free

    Dear Rank Math SEO Support Team,

    I hope this message finds you well. I am currently using the Rank Math SEO plugin on my WordPress site, and I am facing difficulties in disabling the canonical tag in the pagination of articles. Despite trying various approaches and suggested solutions, I have been unable to achieve the desired result.

    I have attempted using custom code in the functions.php file of my WordPress theme, but the canonical tag continues to appear on article pagination pages. I have also deactivated all other plugins to ensure there are no conflicts, but it did not resolve the issue.

    I highly appreciate the Rank Math SEO plugin and would greatly appreciate your assistance in resolving this specific problem. I would like to know if there is a specific method or code that I can use to properly disable the canonical tag in article pagination with Rank Math SEO.

    I kindly request your step-by-step guidance on the best approach to disable the canonical tag in article pagination with Rank Math SEO. Any help or advice you can provide would be greatly appreciated.

    Thank you very much for your attention and assistance. I look forward to hearing from you soon.

    Best regards,
    Maxime Guinard
    m*****************@g********

Viewing 1 replies (of 1 total)
  • Hello,

    Thanks for contacting us and sorry for the inconvenience caused.

    Please try the following filter:

    add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
            if(is_paged()) {
                    return false;
            }
    	return $canonical;
    });

    If this doesn’t work then please share an affected URL so we can check and suggest another solution.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Request for assistance with disabling canonical tag in article pagination with R’ is closed to new replies.