Rank math on custom.php file not working

#471780
  • Resolved cloud webexpert
    Rank Math free

    Hi Team,

    I need your help for adding page title on custom php files. As per wordpress standard i include wp-load.php file on custom php file but unfortunately rank math seo default functions nothing included in that file.

    [moved to sensitive data section]

    Our website having a sub-directory (daily-angel-tarot) having index.php file where i use filter :
    // Include wp libraries and function
    require_once( ‘../wp-load.php’ );

    add_filter( ‘rank_math/frontend/title’, function( $title ) {
    $title=”Angel Oasis – Daily Angel Tarot”;
    return $title;
    });

    get_header();

    But this will not work can you please help me the solution.

    Regards
    Aman

Viewing 2 replies - 1 through 2 (of 2 total)
  • Nigel
    Rank Math business

    Hello,

    Thank you for contacting Rank Math for help with adding a custom filter to your website.

    It is not clear from your description how the filter is being applied on your website. 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,

    Bumping this again. Is your issue resolved?

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

The ticket ‘Rank math on custom.php file not working’ is closed to new replies.