Skip to content

ISBAT: ServerSideRender in a query loop in the block editor and receive the post ID of the post being processed #8

Description

@bobbingwide

When being rendered on the front end the sb-field-block uses the correct post ID to obtain the postmeta data for the post being processed.

In the block editor the post id that is passed for server side rendering is the ID of the post being edited,
not the id of a post being displayed in the query loop / post template.

There are a couple of open issues in Gutenberg that seem to cover this problem.
The first one, at WordPress/gutenberg#34882, was raised 3 years ago.
It contains a potential solution to implement until Gutenberg delivers something.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions