SOLVED: Accordion FAQ schema uses wrong title when using CPT query

WordPress: 6.6.2
PHP: 8.2.24
Bricks: 1.11 + Bricks Child 1.1
URL: Professional Interpretation & Assessment of Psychometric Test Results
Video: https://www.berrycast.com/conversations/c2f36a6a-35cd-59ef-a6f9-ba033941a2ac

Description
I am using the standard accordion element to include multiple FAQs on various pages across the site, pulling from an FAQ CPT using a custom query.

When I switch on the “FAQ schema” the “name” value for the question is pulling from the main page post_title, not the CPT post_title.

The answer “text” value is being pulled correctly from the post_content of the CPT.

Steps to reproduce

  1. Create an accordion element.
  2. Apply a query to the accordion, drawing from a custom post type.
  3. Use the (dynamic) post_title and post_content fields for the title and body of the accordion.
  4. Turn on the FAQs schema toggle for the accordion.
  5. Review the schema generated in the underlying page.

Expected behaviour
The name value of the FAQ schema matches the post_title of the CPT included in the query and displayed on the accordion in the h5 in the div with class “accordion-title”.

Observed behaviour
The name value of the FAQ schema matches the post_title value of the main page on which the accordion element is embedded.

Severity: Mild
Frustrating but not breaking visible functionality, only underlying SEO / page schema.

Hi,
Thanks so much for your report!

I reproduced the issue and added it to our bug tracker.

Best regards,
timmse

1 Like

Do we have a timeframe for when the fix will be rolled out for this?

Thanks.

Unfortunately not, but we’ll let you know once it’s fixed :+1:

1 Like

Hi @thebizpixie ,
We’ve fixed this issue in Bricks 1.12, now available as a one-click update in your WordPress Dashboard.

Changelog: Bricks 1.12 Changelog – Bricks

Please let us know if you are still experiencing issues.

Best regards,
timmse