• Resolved jimthephoneguy9569

    (@jimthephoneguy9569)


    With AMPforWP and your structured data plugin, there is a button at the bottom of a post or page labeled “Add Custom Schema”. Great!

    It only works with JSON, not JSON-LD. Why?

    You were so close to solving a major issue many of us have with structured data, but the implementation is a complete miss.

    Can you update the plugin to work with JSON-LD instead of JSON?

    Thank you,
    Jim

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    In this “Add Custom Schema” which code you have to be added? Can you please share that code?

    Thread Starter jimthephoneguy9569

    (@jimthephoneguy9569)

    JSON-LD code that is used for structured data. Create any code you want as an example, use the generator: https://technicalseo.com/tools/schema-markup-generator/

    If you put that in your custom JSON box, it does not work, it does not end up on the amp page, it is removed. If I try to convert json-ld to json, it is not a direct translation. The structured data shows up on the amp page but with a large amount of errors.

    If you can allow json-ld instead of or in addition to json, that would be perfect!

    Thank you,
    Jim

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please tell me which code are you trying to add in “Add Custom Schema”? So that I can test and help you to solve that issue.

    Thread Starter jimthephoneguy9569

    (@jimthephoneguy9569)

    I did additional testing. It seems if you input code that begins with <script type=”application/ld+json”> and ends with </script>, AMPforWP removes the code.

    If you input the exact same code, but remove the <script type=”application/ld+json”> and </script>, the code is added to the AMP page as structured data.

    So, the plugin does work with json-ld. That mystery is solved.

    Next, I tried to get more than one set of scripts to work. Many attempts with variations of trying to string together more than one schema failed.

    Is there a way to do this?

    Thank you,
    Jim

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please share more details of your issue?

    Thread Starter jimthephoneguy9569

    (@jimthephoneguy9569)

    nevermind. i will find another solution. very unhappy with the level of support.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Sorry for the inconvenience. We understood your issues. We will be fixing this issue in our next schema updates.

    • This reply was modified 5 years, 2 months ago by Ahmed Kaludi.
    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi,
    This issue can be fixed in our latest updates. You can insert JSON-ld data with the script or without script tag.
    Reference: https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/701

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Custom Schema – so close!’ is closed to new replies.