¿How change canonical and robot?

#16959
  • Resolved sargentochusquero
    Rank Math free

    Hi,

    I’m going crazy with this, I want to change the canonical and put no index in certain post, but if I put the two does not leave me, only one or the other.

    How can I change both?

    add_filter( ‘rank_math/frontend/robots’, function( $robots ) {

    Code…

    return $robots;
    });

    add_filter( ‘rank_math/frontend/canonical’, function($canonical){

    Code….

    return $canonical;
    } );

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    I dont undestand.

    ¿Are there any problem if i put two call to add_filter…???

    Hello,

    Thank you for contacting Rank Math today.

    There is no limit on the number of filters you can use and in your case, both filters should work just fine. You can also check your WP_DEBUG log for any errors that may be reported to try and narrow down on the issue.

    Also, you can share with us some temporary WP login credentials as outlined in my previous response so that I may assist in debugging the issue.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘¿How change canonical and robot?’ is closed to new replies.