Duplicate Schema Issues in RankMath

#1079612
  • Resolved Azhar Khan
    Rank Math free

    Hi,

    I have tried all possible methods, but RankMath is still showing a duplicate schema for my posts.

    Can you please tell me what is causing this and how I can solve it?

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

    We apologize for the issue you are facing with duplicate schema in Rank Math. Duplicate schema can occur when you have existing Schema Markup on a post that you are duplicating, which results in errors due to the duplication of the Schema shortcode.

    To resolve this issue, you can follow these steps:

    1. Remove the Duplicate Schema

    You can fix the duplicate schema by removing the existing Schema from your posts and then adding it again using the Schema Generator. Here’s how:

    • Navigate to your WordPress DashboardPosts or Pages.
    • Hover over the affected post or page to get the post ID.
    • Log into your database (usually through cPanel → phpMyAdmin).
    • Find the postmeta table and filter rows by entering your post ID followed by rank_math_schema.
    • Delete the corrupted Schema entries.

    Take note of your post ID
    Log into your database
    Select your database
    Enter postmeta into the search bar
    Enter the post id followed by rank_math_schema

    2. Use Bulk Actions (PRO Feature)

    If you have Rank Math PRO, you can also use the bulk actions feature:

    • Go to WordPress Dashboard → Posts or Pages.
    • Select the affected posts or pages.
    • In the Bulk actions menu, select Set Schema: None and click Apply. This will remove all Schema from the selected posts.

    Select the affected posts or pages
    Select Set Schema None

    After removing the duplicate schema, you can add new Schema to your posts as needed.

    If you continue to experience issues, please reply to this ticket with your site URL, and a human agent from our support team will assist you further. Thank you for raising this concern!

    Sources:
    Why You Shouldn’t Duplicate Posts/Pages » Rank Math
    Resolving Rank Math Schema Markup Related Issues

    I Have already checked php myadmin, there is no issue.

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    We checked the affected page and we can’t seem to find any duplication of schemas. See screenshot below:

    Rank Math support

    Can you please clear your website’s cache and submit the URL in the Rich Result Test again?

    Looking forward to helping you.

    Actually It was fixed , Thanks a lot for the response.

    Hello,

    Glad that everything has been sorted out.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this ticket.