Yoast / Yoast/wordpress-seo

Add schema support for FSE templates

Open
#20,344 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

block-theme component: gutenblocks component: schema (JSON+LD) IM
Dominant language
JavaScript
Stars
2k
Forks
975
Avg merge
3d 13h
Merged PRs (30d)
36

Description

Moved from: https://yoast.atlassian.net/browse/PC-761
Reporter: @leonidasmi

Description

When we add blocks that add schema, in a FSE template, that isn’t considered when we output the frontend of a post of that template. Example:

  • Go to the Site Editor and edit the Post template
  • Add a Yoast How-to block in the Post template and save
  • Create a post and check its schema
  • In the schema no HowTo object is being output

We need to make sure we add support for that

Replicated both with WP 6.0.2 and 6.1 - with the Twenty Twenty-Two theme (which is a FSE theme)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the Site Editor with a Twenty Twenty-Two Post template containing a Yoast How-to block, then inspect how the frontend schema is generated for posts using that template. The work is done when schema from blocks added to an FSE template, including the HowTo object, is included in the post output on the tested WordPress versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php, wordpress
Domain
backend, content
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.