Product Schema Missing on Some CPT Pages Despite Identical Settings

#1032953
  • Resolved mayumi
    Rank Math free

    Hi experts!

    Thanks for your support as always.

    I’m experiencing an issue with Product schema implementation on my website. I have two pages using the same custom post type with identical RankMath schema settings on the same site, but only one of them is properly generating the Product schema markup.
    Details of the issue:

    Both pages use the same custom post type and template file
    Both pages have identical custom field values filled in
    No conditional schema settings are being used
    Both pages are on the same site with the same active plugins
    Neither page has any categories or tags assigned
    I’ve cleared the cache but the issue persists

    I’ve verified that one page correctly outputs the Product schema JSON-LD markup in its source code, while the other page doesn’t generate any Product schema at all.
    What could be causing this inconsistency in schema generation between seemingly identical pages? Is there a hidden setting or condition that might be preventing the schema from generating on one page but not the other?
    I can provide the URLs to both pages via private message if needed for troubleshooting.
    Thank you for your assistance.

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

    We apologize for the issue you are facing with the Product schema implementation on your website. Thank you for providing detailed information about the problem.

    Given that both pages are using the same custom post type and have identical settings, there are a few things you might want to check:

    1. Featured Image: Ensure that both pages have a featured image set. The Product schema requires a featured image to be included in the JSON-LD markup.

    2. Schema Type: Double-check that the schema type is correctly set to "WooCommerce Product" for both pages. You can do this by navigating to WordPress Dashboard → Rank Math SEO → Titles & Meta → Products and confirming the settings.

    3. Schema Validation: Use Google’s Rich Results Test tool to validate the schema on both pages. This can help identify any errors or warnings that might be affecting schema generation.

    4. Custom Fields: If you are using custom fields, ensure that they are correctly mapped and recognized by Rank Math. Sometimes, custom fields may not be picked up if they are not configured properly.

    5. Theme or Plugin Conflicts: Since both pages are on the same site with the same active plugins, consider temporarily switching to a default theme (like Twenty Twenty-One) to see if the issue persists. This can help identify if there’s a conflict with your current theme.

    If after checking these points the issue still persists, please reply to this ticket with the URLs of both pages, and a human agent from our support team will assist you further.

    Thank you for your patience, and we look forward to resolving this issue for you!

    Sources:
    Resolving Rank Math Schema Markup Related Issues

    Hello,

    Thank you for reaching out to us.

    We deleted and added the product schema on /test_gw/inventory/giga/, and it is now being detected by the Google rich result test tool: https://search.google.com/test/rich-results/

    We hope this helps. Please let us know if you have further questions or concerns.

    Thank you.

    mayumi
    Rank Math free

    Hi Ike,
    Thanks for your reply.
    Now I see the page in question has Product scheme, but this is only a test site.
    What I want to do is not to generate product scheme for this product, but wanted to know the reason why the RankMath scheme generator does not work.

    I tried to create another product for test,
    https://xs184613.xsrv.jp/test_gw/inventory/supergreat/
    so this also does not have any Product scheme thought I have applied Product Scheme via RankMath.

    So, what do you mean by “We deleted and added the product schema” exactly?
    We really need to know the root cause and fix the problem.

    Thanks.

    -Mayumi

    Hello,

    Please see this screencast of how we got the schema working/getting detected.
    https://www.loom.com/share/401ed573c1fd4ce8b4840d4ef1da4672?sid=37d9a01a-8228-498c-b650-9be4a1bbc3c7

    Please let us know how you are adding product schema to those pages.

    We look forward to helping you.

    Thank you.

    mayumi
    Rank Math free

    Hi Ike,

    Thanks for the recording. Following the guide now I can reproduce the scheme-applied product.
    However, we always have over 1,000 products in our production site. So its not realistic to follow this step for each.

    I have used RankMath plugins for many other websites and they don’t need this step. When I add new CPT, the pre-specified Scheme type is automatically applied for all.

    What do you think why this doesn’t work for the site?
    Is there any way to apply the same scheme for the CPT once you specify the mapping in RankMath settings?

    Thanks!

    Regards,
    Mayumi

    Hello,

    This is actually the intended behaviour in our plugin.

    The Product schema requires properties to be filled with a value first, like the price or review. This might force you to individually modify the schema to make it appear on the frontend, but this ensures the schema stays compliant and valid in the Rich Result Test.

    I see that you have a price custom field ready for this but since you’re using the Free plugin, you’ll have to manually set the price for the Product schema to show.

    If you have the PRO version, you can create an advanced Schema Template where you can pre-define the price property of the Product schema with a dynamic variable like %customfield(YOUR_PRICE_FIELD_NAME)%. This helps you automate things more effectively.

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

    mayumi
    Rank Math free

    Hi, reading your reply, I purchased Pro version and looks like I can populate name, price and such dynamically from custom field.

    However, it looks like I can’t set “availability” dinamically custom field.

    Our products have “inventory_situation” custom field that has “soldout” “available” values. Depending to the value, I’d love to populate Availability field.

    How could I do this?

    Regards,
    Mayumi

    Hello,

    You mentioned that you’re already using Rank Math PRO, but the account you used to open this ticket is still 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, please share the screenshot of the fields in the schema and the sample product URL so we can check. You can upload screenshots using this tool and add the link here.

    Looking forward to helping 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 8 replies - 1 through 8 (of 8 total)

The ticket ‘Product Schema Missing on Some CPT Pages Despite Identical Settings’ is closed to new replies.