• I created a custom gutenberg block that relies on some information (specifically the permalink) if the post where it is included. My implementation works fine if the block is added directly into the post content.

    However the problem is, that this block is supposed to also be used inside a synced pattern. When doing that, the post context i get with the cor/editor store and getCurrentPost refers to the wp_post object of the synced pattern and not the parent post in which the synced pattern is used.

    Is there are way to get the actual ancestor post context from a block used inside a synced pattern?

    Thanks!

  • You must be logged in to reply to this topic.