Add schema support for FSE templates
Nobody has claimed this yet.
- 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-toblock in the Post template and save - Create a post and check its schema
- In the schema no
HowToobject 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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