i need to put another seo title

#684342
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello, I’m sorry for the inconvenience you’re facing. It seems like you’re trying to change the SEO title using a code snippet when a sample title is entered in the ACF field. To change the SEO title based on the ACF field, you can use Rank Math’s filter hook to modify the SEO title dynamically.

    Here’s an example of how you can achieve this:

    add_filter( 'rank_math/frontend/title', function( $title ) {
        // Replace 'your_acf_field_name' with the actual ACF field name
        $custom_title = get_field( 'your_acf_field_name' );
    
        if ( $custom_title ) {
            return $custom_title;
        }
    
        return $title;
    });

    You can add this code to your theme’s functions.php file or a custom plugin. This will allow you to change the SEO title based on the value entered in the ACF field.

    If you have any further questions or need assistance with implementing this, please feel free to ask.

    Sources:
    Bulk Editing Options in the Rank Math SEO Plugin
    General Tab in Meta Box of Rank Math SEO Plugin
    How to Write Effective SEO Titles That Rank High » Rank Math
    How to Spy on Your Competitor’s SEO Strategy Using Rank Math

    or give me the best thing that i can use just the rankmath title seo in the post editer just to change the seo title nthing else

    thank for the replay but i need to add the
    new title – site name

    Hello,

    Thank you for contacting us and bringing your concern to our attention.

    Can you please confirm if you want to change the format of your SEO title? If so, you can change that form Rank Math > Titles & Meta > Posts/Pages:

    Please note that this settings will only be applied to the pages/posts where you didn’t used any custom SEO title.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    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 4 replies - 1 through 4 (of 4 total)

The ticket ‘i need to put another seo title’ is closed to new replies.