Hello,
We apologize for the issue you are facing with the Open Graph locale tag rendering as en_US
instead of en_AU
. As mentioned in the documentation, the og:locale
tag is automatically added based on the language selected in the WordPress General Settings. If your desired language is not being reflected correctly, it may be due to how WordPress handles locale settings.
Unfortunately, if en_AU
is not available in the list of options provided by WordPress, Rank Math will default to en_US
.
To ensure that your settings are correct, please double-check the following:
- Go to WordPress Dashboard → Settings → General.
- Ensure that Site Language is set to English (Australia).
If everything appears correct and the issue persists, we recommend replying to this ticket. A human agent from the Rank Math Support team will be able to assist you further with this matter.
Thank you for bringing this concern to our attention!
Sources:
Open Graph Meta Tags » Rank Math
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
You can try to use the following filter on your website to change the og:locale
.
add_filter( "rank_math/opengraph/facebook/og_locale", function( $content ) {
$content = 'en_AU';
return $content;
});
Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.
That script works. Thank you.
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.