RankMath SEO Tags Function for Custom Post Template

#440209
  • Resolved KEC
    Rank Math free

    Hello, we want to migrate from Yoast SEO to RankMath Pro we have an app that built on custom post template and we have not included (wphead) in the post template to avoid loading unnecessary files and code… We have used <?php do_action( 'wpseo_head' );?> in <head> tag for Yoast SEO plugin to display yoast meta info and tags.

    Now we want to migrate to rank math. Could you please helpus to add RankMath information in our custom post template. We don’t want to add (wphead) in our custom post template…

    Thanks,
    Kumar

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

    Thank you for contacting Rank Math today.

    With our plugin you can use the following code snippet:

    
    <?php do_action( 'rank_math/head' );?>
    

    This will be the equivalent of what you are using from Yoast SEO.

    Don’t hesitate to get in touch if you have any other questions.
    ​​​​​​

    KEC
    Rank Math free

    Hello, thank you for your response. This doesn’t work at all. Could you please confirm?

    Hello,

    I tested that code on my end and it seems to be working well.

    Can you please try clearing your website cache and check again?

    I the issue persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    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.

    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 ‘RankMath SEO Tags Function for Custom Post Template’ is closed to new replies.