Custom Post Type – Schema

#59268
  • Resolved Anonymous
    Rank Math free

    Hi,
    I have a website about recipe. I have a custom post type for recipe. Many fields (preparation time, cooking time, ingredients, steps, etc.) are already available in the custom post type. When I select recipe as “Schema Type” in the Rank Math plugin, I do not want to enter the data I entered in custom fields in your “Schema” page again. Can I map the areas for this? For example, to match and synchronize the preparation time in my custom field with the “Preparation Time” field in your “Schema” section.
    Can you send a short piece of code if I can do it with the code?
    I use the CMB2 plugin for custom fields.

    I suggest you take a look at the link below for the best understanding. (video1)

    Another question is that when I fill all the fields from the “Schema” tab for my recipe and when I look at the recipe’s html code, I see it saved in both “JSON-LD” and “Without Markup” format. I don’t want it to appear as “Without Markup”. You can browse the video below after 00:50 sec. (video2)

    Thanks
    Best regards

Viewing 1 replies (of 1 total)
  • Todd
    Rank Math free

    Hello,

    We are so sorry but there is no option to map those. Creating a custom PHP script will take a lot of time and that is something we cannot offer support for due to time constraints.

    You can extend the Schema Markup by utilizing the filters provided here
    https://rankmath.com/kb/filters-hooks-api-developer/#richsnippets

    What you can do otherwise is use your current recipe plugin to generate Recipe Schema and use “Article” Schema from Rank Math.

    You can remove the “without markup” section by going to the post/page in question and then go to the Rich Snippets tab of Rank Math.

    You will see this option:
    https://i.rankmath.com/6aUT8q

    Choose the “Custom (Shortcode)” option and then don’t paste the shortcode anywhere. That will prevent your rich snippets from showing up on the frontend. By the way, showing the rich snippet on the frontend is completely optional and doesn’t affect your rich search results.

    We hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    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 ‘Custom Post Type – Schema’ is closed to new replies.