Skip to content

Issue with blocks and collections #4558

@knightcreativegroup

Description

@knightcreativegroup

Describe the bug
I'm having an issue with blocks rendering without any content when I am adding the block after the post has been added to a collection. If I create the same block prior to assigning the collection, it renders as expected. So this seems to be an issue with creating new blocks after the post has been added to a collection.

To Reproduce
Steps to reproduce the behavior:

  1. Create a post
  2. Add a container block and set padding, margin, background color
  3. Save post and view... container renders as expected
  4. Assign post to a collection via post editor > Post > "Add New Collection" - I'm assigning a collection that I have already created via the collections editor.
  5. Add another container block, same as in step 2
  6. Save and view post... container renders as div > gb-container-inside > gb-container-content ... and there is no content.

I have been able to reproduce this in more than one post and more than one collection.

Screenshots
I've added screenshots showing the steps above

Expected behavior
Expect that I am able to edit/add post content after a post has been assigned to a collection.

Image Image Image Image Image Image

Newspack: Newspack 6.34.3
WP: 6.9.4
PHP: 8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions