Bulk canonical

#70012
  • Resolved Crunchpbn
    Rank Math free

    hello, I want to be able to add canonical URLs to all child pages based on a parent page. Is it possible to modify the canonical in bulk?
    Thank you for your reply.
    Regards,

    • This topic was modified 4 years, 2 months ago by Crunchpbn.
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    Unfortunately Rank math doesn’t have such a feature. You can however modify the following filter and customize with the help of a developer to change your posts canonical:

    
    /**
     * Allow changing of the canonical URL.
     *
     * @param string $canonical The canonical URL.
     */
    add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
    	return $canonical;
    });
    

    Looking forward to helping you. Thank 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 ‘Bulk canonical’ is closed to new replies.