How can i setup title format for Multiple Languages Using Rank Math and

#501058
  • Resolved Hoang Nguyen
    Rank Math free

    How can i setup title format for Multiple Languages Using Rank Math and TranslatePress?

    Dear support,

    I want to config title for Multiple Languages Using Rank Math and TranslatePress? without translate each of posts?

    Thank you so much.

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    In TranslatePress, you can set your meta title and description individually upon editing your pages.

    Here’s a link for more information:
    https://rankmath.com/kb/multiple-languages-seo-rankmath-translatepress/#translate-tile-description

    Hope that helps.

    Thank you.

    Hoang Nguyen
    Rank Math free

    Hello Reinelle,
    That is manual for each of post. I want to translate in Title and meta Setting for all posts.

    Thank you so much.

    Hello,

    The format you set in the Titles & Meta settings should be applied to all the posts and pages. Can you please share more details about the issue you are facing while using the global format?

    Looking forward to helping you.

    Hoang Nguyen
    Rank Math free

    Dear Jaideep Asrani,
    Can i use php code to update the title of a specific page?
    Eg:
    I want to change the title of the page with id 789 to “Anything” using php:
    if (get_locale() ==”en” ) {
    set_title(‘789’,”Title to any”);
    }

    Nigel
    Rank Math business

    Hello,

    Yes, something like that can be done. You could also use the Rank Math filter to change the frontend meta title. You can refer to the following article for that and other filters you might find useful: https://rankmath.com/kb/filters-hooks-api-developer/#change-the-title

    Hope that helps. Please let us know if you have questions.

    Hoang Nguyen
    Rank Math free

    Hello Nigel,

    Thank you so much for your support. And i have one more question:
    I see this:

    /**
    * Allow changing the meta description sentence from within the theme.
    *
    * @param string $description The description sentence.
    */
    add_filter( ‘rank_math/frontend/description’, function( $description ) {
    return $description;
    });

    How can i add more post title to $description? So i dont know what’s title var can add to this filter.

    Thank you again.

    Hoang Nguyen
    Rank Math free

    Many thanks, i have input more:

    global $post;

    to that filter.
    And i done.

    Hoang Nguyen
    Rank Math free

    Hello,
    So sorry, but it doen’t send title to description. 🙁

    Help me please.

    Hello,

    To add the title of the post to the description you need to do the following:

    
    add_filter( 'rank_math/frontend/description', function( $description ) {
        $description .= the_title();
        return $description;
    });
    

    This will append the title of the post to the end of the description currently set for it.

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

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

The ticket ‘How can i setup title format for Multiple Languages Using Rank Math and’ is closed to new replies.