-
All of my schema pages under service tab are having a non critical error for “addressCountry”: “USA”
suppose to only be 2 digits “US”. How or where can I go in setup to change this?Also having a upload date issue on video schema “uploadDate”: “2023-05-01”,also wrong format. How or where can I change this?
-
Hello,
I apologize for the schema issues you are facing with your pages. To resolve the “addressCountry” format error from “USA” to “US” in your service tab schema, you need to navigate to the specific service page in your Rank Math setup and adjust the country code to the correct format.
Here are the steps to change the “addressCountry” format:
- Go to the service page in your Rank Math setup.
- Locate the “addressCountry” field.
- Change the country code from “USA” to “US” in the ISO 3166-1 alpha-2 format.
If you encounter any difficulties while making this change, please provide more details or screenshots, and we will assist you further.
Regarding the “uploadDate” issue in your video schema, where the format is incorrect (“2023-05-01”), you can fix this by adding the correct timezone information to the schema property. To do this, you need to include a filter code snippet in your theme’s
functions.php
orrank-math.php
file.Here is the filter code snippet to add time & timezone in existing Video Schema:
/** * Filter code to add time & timezone in existing Video Schema */ add_filter( 'rank_math/snippet/rich_snippet_videoobject_entity', function( $entity ) { if ( empty( $entity['uploadDate'] ) ) { return $entity; } $parts = explode( 'T', $entity['uploadDate'] ); if ( ! empty( $parts[ 1 ] ) ) { return $entity; } $entity['uploadDate'] = wp_date( 'Y-m-dTH:i:sP', strtotime( $entity['uploadDate'] ) ); return $entity; } );
By adding this filter code snippet, you can ensure that the “uploadDate” property includes the correct timezone information. If you need further assistance with this process, please let us know.
Thank you for bringing these concerns to our attention. We are here to help you with any additional questions or issues you may have.
Sources:
How to Create Multiple Locations (with Schema) Using Rank Math » Rank Math
HowTo Schema Type » Rank Math
Restaurant Schema Type » Rank Math
Resolving Rank Math Schema Markup Related Issues
JobPosting Schema Type » Rank MathHello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
I am not able to find the specific service page in rankmath. Any ideas?
Hello,
We’ve checked your site, and it seems that you’re using Rank Math PRO but the account you have used to open this ticket is the Rank Math free version.
Can you please search and forward a receipt from FastSpring.com or the email address you used to purchase so we can locate your account and verify it?
Meanwhile, to update the Country in the Service Schema, head over to Rank Math > Titles & Meta > Local SEO > Address and change the country code
Regarding the
uploadDate
, it is a non-critical issue related to the upload date and timezone.However, you can apply the filter we have shared above to fix it in the Video Schema.
Here’s a link to how to apply that to your site:
https://rankmath.com/kb/filters-hooks-api-developer/Once done, you will have to generate the Video Schema again for all the videos to fix the issue by removing the old Video schema on your posts.
Hope that helps.
It is one of these:
t**@c*****************
t**@l****************
t********@c*********did upgrade to pro but must have lost during an update?
I found receipt under t********@c********* email back on 5/5/23 order ref#: RANKMATH230505-4947-56451
Hello,
For the country issue, please try using the two-letter identifier for the United States which is
US
or the full name like soUnited States
.As for the issue with the Video Schema, the upload date is missing the timezone and the time. With those, it would be something similar to this:
2022-06-17T11:44:59+00:00
That is for a time of 11:44 in the UTC timezone which is
+00:00
.You can change that according to your timezone and upload time of the video.
Don’t hesitate to get in touch if you have any other questions.
Yes I am fully aware of the 2 digit code. the problem I am having is that when the code is prepared on rankmath side it is using 3 digit and I cannot change. when I go to my settings the code on my end is saying (US). May have happened on an update. How can I manually go in and change all these pages on schema?
Also not sure why rankmath version is showing free when I paid for pro version. How can I check to see if I am in pro or free version. currently when I go to dashboard it displays free up top.Hello,
Regarding your subscription, we can merge your accounts as the one you’re using is only in the free version. Please share your preferred email so we can process it for you.
Also, 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.
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,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
To change this country you need to temporarily disable the multiple locations feature to edit the country name or code that you have added in the address.
The country inside the Schema markup doesn’t come from the option
Primary Country
that you can see on the Local SEO module.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.
The ticket ‘Schema issue’ is closed to new replies.