Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add a note about references in reusable blocks

Signed-off-by: Narek Zakarian <[email protected]>
  • Loading branch information
Narek13 authored Nov 6, 2023
1 parent 735f3e3 commit 48b3659
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,22 @@ Yes, you need your own API key to connect with the Eurotext servers. For more in

Just send an email to [email protected] with a request.

**Issue with References in Reusable Blocks.**

In instances where Gutenberg's reusable blocks are utilized, there may be discrepancies in the references within imported posts. This can result in missing or inaccurate references to the corresponding reusable blocks.

Specifically, the issue arises when the imported posts receive different IDs compared to the original posts, causing the references to become mismatched.

*Illustrative Example:*

For instance, let's consider a reusable block named "Text-Section" with the ID 1429. This block is utilized on the main page, and in the database, it is referenced as Ref: 1429, allowing it to be displayed.

On the Spanish version of the site, the same "Text-Section" block is assigned the ID 189. However, in the database, the main page continues to search for the reusable block with the reference 1429, which no longer exists. Consequently, WordPress encounters difficulty in displaying the block.

*Identifying Reusable Blocks:*

To identify reusable blocks in the database, look for the following markup: *<!-- wp:block {"ref":1429} /-->*

## License
Copyright (c) 2021 Inpsyde GmbH

Expand Down

0 comments on commit 48b3659

Please sign in to comment.