[Resolved] GP Blocks / structured data / faq

Home Forums Support [Resolved] GP Blocks / structured data / faq

Home Forums Support GP Blocks / structured data / faq

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2286690
    Jan

    Hi David,

    I’d like to embed structured data into a FAQ section built with two GB containers and headline blocks.

    An online generator tool like this would provide me with the JSON-LD to add to an HTML block.

    This issue is that this JSON-LD includes both question and answer into the same snippet. For my template, however, I need two code snippets, one for the question and one for the answer.

    When I look at the html of the Yoast FAQ block they seem to use and ID in order to a questions to the relevant answer (see screenshot).

    How would you go about splitting the following:

    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "FAQPage",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "This is the Question.",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Here comes the Answer."
          }
        }
      ]
    }
    </script>

    Any advise would be much appreciated.

    Best,
    Jan

    #2286701
    Leo
    Staff
    Customer Support

    Hi Jan,

    Can you open a support topic in GB’s support forum as it’s directly related to GB and it might be helpful for other GB users?
    https://wordpress.org/support/plugin/generateblocks/

    Thanks!

    #2286721
    Jan
    #2286734
    Leo
    Staff
    Customer Support

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.