• Resolved Jamie Burchell

    (@jamieburchell)


    I think I’ve discovered a bug with Rank Math (version 1.0.241).

    I have a post type of “person” and a number of “person” posts that I had not configured the schema type for, so by default were all schema type “Article”. I went in to the Rank Math “Titles & Meta” for that post type and changed the schema to “Person”. The posts reflected the new type in the admin interface when listing the posts, but the respective application/ld+json script was completely missing from the public HTML for each one. I verified a few times after clearing down all caches – same issue.

    The only way I could get the missing tag to show in the HTML was by editing each post, going in to the Rank Math panel > Schema and editing and re-saving or removing and re-adding the “Person” schema type. Simply saving the post was not enough to get it to come back.

    Adding a new “person” post and the JSON-LD is also completely missing again by default. I notice that “Schema” shows as “Off” next to the post in the admin interface in this case, yet I have configured this post type to be of schema type “Person”.

    Something that might be related is that in the admin interface the Schema shows as “person” (lowercase “p”) yet when I edit the post and re-save the schema details or remove then re-add to get it to work it shows as schema type “Person” (uppercase “P”).

    Edit: Just checked my other websites that have the same post type and they are all affected (different plugins and page builders in play).

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter Jamie Burchell

    (@jamieburchell)

    Thread Starter Jamie Burchell

    (@jamieburchell)

    Another possibly related issue: I have “Titles & Meta” > “People” > “Headline” set to “%title%” yet when viewing the schema details of an individual person post the placeholder is “%seo_title%” and does not inherit the default values.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @jamieburchell,
     
    Thank you for contacting Rank Math support.
     
    This isn’t a bug. This is the default behavior of the Schema module when you select any Schema type other than Article for a post type. The Article Schema doesn’t need to be filled, as it can automatically get the details from the post. The rest of the Schema types need their fields filled out manually and that’s why they are not applied to the post unless you edit the Schema in the post editor and use the Save for this Post option.
     
    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter Jamie Burchell

    (@jamieburchell)

    Hi @rankmathsupport

    That doesn’t make any sense.

    What is the purpose of setting the default options in “Titles & Meta” > “Person” (post type) > “Headline” etc. if they are not carried through anywhere?

    It also doesn’t explain why new posts of type “Person” are showing as “Schema: Off”.

    Thread Starter Jamie Burchell

    (@jamieburchell)

    Why has this thread been marked as resolved @rankmathsupport ?

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @jamieburchell,
     
    That is because the schema (except the Article) requires information to be manually added. This will make sure your posts are initially valid in the Rich Results.
     
    If you wish the Person schema to be fully automated, you can set up custom fields to accommodate required fields and make use of our Schema template instead which is available in the PRO version.
     
    Don’t hesitate to get in touch with us if you have any other questions.

    Thread Starter Jamie Burchell

    (@jamieburchell)

    @rankmathsupport What about the second part of my question and screencast where adding a new person shows “Schema: Off” by default, when it should be Schema type person?

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @jamieburchell,
     
    The Schema will show off unless you use the “Save for this post” option in the Schema editor and save the post, as the Schema isn’t saved for the post in the database unless it is edited and saved.
     
    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter Jamie Burchell

    (@jamieburchell)

    @rankmathsupport Is that a recent change because I have an existing list of person posts that I have not “saved the schema” for and they are showing as schema type “person”. If I add a new post, it shows as schema type “off”. If I edit the schema it shows as schema type “Person” (capital “P”).

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @jamieburchell,
     
    This isn’t something new. Please confirm if you imported the data from another SEO plugin. That could be the reason that the old posts have the person Schema without saving it.
     
    Looking forward to helping you.

    Thread Starter Jamie Burchell

    (@jamieburchell)

    Hi @rankmathsupport

    The data was not imported from another SEO plugin, it’s a fresh install.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @jamieburchell,
     
    Sorry for the confusion. The Schema type should be shown even if you haven’t used the “Save for this post” option. However, it won’t be applied to the post without saving it. To check why it isn’t working on your site, we will have to take a closer look. Please get in touch with our development team at [email protected].
     
    Looking forward to helping you.

    Thread Starter Jamie Burchell

    (@jamieburchell)

    @rankmathsupport Thanks- I have sent an email as requested.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @jamieburchell,
     
    Our support team has checked the issue on your site and replied to your email.
     
    Thank you.

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

The topic ‘JSON-LD missing from HTML’ is closed to new replies.