Skip to content

FAQ schema markup on Topics page template

We would like to implement FAQ schema markup to the Topics page template similar to the implementation completed on The Source.

FAQ Schema Template

{
    "@context": "https://schema.org",
    "@type": "FAQPage",
    "mainEntity": [
        {
            "@type": "Question",
            "name": "{{componentContent.groups[0].questions[0].question}}",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "{{componentContent.groups[0].questions[0].answer}}"
            }
        },
        {
            "@type": "Question",
            "name": "{{componentContent.groups[0].questions[1].question}}",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "{{componentContent.groups[0].questions[1].answer}}"
            }
        },
        {
            "@type": "Question",
            "name": "{{componentContent.groups[0].questions[2].question}}",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "{{componentContent.groups[0].questions[2].answer}}"
            }
        },
        {
            "@type": "Question",
            "name": "{{componentContent.groups[0].questions[3].question}}",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "{{componentContent.groups[0].questions[3].answer}}"
            }
        },
        {
            "@type": "Question",
            "name": "{{componentContent.groups[0].questions[4].question}}",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "{{componentContent.groups[0].questions[4].answer}}"
            }
        },
        {
            "@type": "Question",
            "name": "{{componentContent.groups[0].questions[5].question}}",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "{{componentContent.groups[0].questions[5].answer}}"
            }
        },
        {
            "@type": "Question",
            "name": "{{componentContent.groups[0].questions[6].question}}",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "{{componentContent.groups[0].questions[6].answer}}"
            }
        }
    ]
}
Edited by Hanif Smith-Watson