WIP: Multiple FAQ schemas on a page

Adding two or more FAQ blocks with FAQ schema enabled, outputs two json schema scripts into the page. However, Google considers this invalid markup!

Google Search Console warning:

FAQ structured data issues detected in example.com
Search Console has identified that your site is affected by 1 FAQ structured data issue(s). The following issues were found on your site.
Top critical issues*
Duplicate field “FAQPage”
*Critical issues prevent your page or feature from appearing in Search results.
We recommend that you fix these issues when possible to enable the best experience and coverage in Google Search.

According to Schema.org Validator, duplicate FAQPage entries are perfectly valid. However, Google complains this is invalid syntax as they share a duplicate @type value of FAQPage.

If possible, I guess Bricks should combine multiple FAQ scripts into a single combined script with all the questions/answers in one script to resolve the issue.

I can workaround this manually by disabling the FAQschema option on both blocks and including a code block with the combined schema manually. But obviously it would be better if Bricks was able to output Google compliant markup directly.

Current output from two FAQ blocks:

<script type=“application/ld+json”>
{
“@context”: “https://schema.org”,
“@type”: “FAQPage”,
“mainEntity”: [
… Block 1 questions
]
}
</script>

<script type=“application/ld+json”>
{
“@context”: “https://schema.org”,
“@type”: “FAQPage”,
“mainEntity”: [
… Block 2 questions
]
}
</script>

Cheers for such a great builder BTW

Hi,
Thanks so much for your report, and wecome to the forum!

I can replicate the problem and have added it to the internal bug tracker. We will update this thread as soon as it is fixed.

Best regards,
timmse

2 Likes

Hi @timmse

Was this one fixed? I would like to display two sets of FAQs (two different categories) on a single page and I’m guessing I will run into this problem.

I’m not sure if there’s a better way to categorise them from a schema point of view; I can’t see a “category” field or similar. I could put them on two separate pages I suppose.

Hi Jamie,
Unfortunately, the task is still in progress (WIP = work in progress).

1 Like

Its easy to workaround in the mean time.
Simple enable the schema on both FAQ blocks, then copy the json+ld blocks it generates and combine them manually into one block of code. Paste this into a code block on the page then disable schema generation for both FAQ blocks. Check the page with googles rich results tester. The only issue is you have to keep this in sync if you add more FAQs later.

Alternatively, you can simply choose to only output the schema for one of the FAQ blocks - not ideal but stops google complaining.