Wrong schema being output on custom post type

#599039
  • Resolved Anonymous
    Rank Math free

    Hi,

    I’m building a site that will hold recipes and I’m using the free version of Rank Math. I’ve set up a custom post type for the recipes and set the schema type to “Recipe” in the Rank math settings. The recipe schema builder is shown when I add/edit recipes but the schema output within the HTML is just standard “Article” schema. Any ideas? I’m working on this site in a local dev environment so there’s no caching or anything involved at the moment.

    Thanks,

    Ash

Viewing 1 replies (of 1 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.

    Could you please confirm if you’re displaying the correct shortcode from the recipe schema on your custom post types?
    https://rankmath.com/kb/recipe-schema/#shortcode

    You’ll notice the difference with the characters after the id= part in the shortcode, and you may have used the one from the article schema.

    If not, please share screenshots as well of the data from your recipe schema and the front end so we can check since you’re working on a local host environment.

    You can use this tool to upload screenshots and add the generated link here.

    Looking forward to helping you.

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

The ticket ‘Wrong schema being output on custom post type’ is closed to new replies.