• I am learning to develop a new block but I got blocked with this issue . I can see the block in the block editor. I can enter text in a pair of richtext components of my block but the block the page does not save correctly to database and does not preview in a new tab.

    WordPress 6.1, theme Twenty-Three , all plugins except mine disabled.

    What I am doing wrong?

    See files here : https://gist.github.com/capbussat/b33ac43a28e23d31f2ee399ee2b939aa

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, @capbussat

    There is likely an issue with how you save and retrieve data from the richtext components in your block. It is also possible that there may be a problem with the way you are registering your block in WordPress. To ensure that everything is running smoothly,
    you should check the code for saving and retrieving data to ensure it is accurate.
    Additionally, make sure that your block is registered correctly in WordPress.
    Lastly, you should check the console for any error messages that may help you identify the source of the issue.
    Thank you.

    Thread Starter capbussat

    (@capbussat)

    Ok, so let’s expand this question how can I check that my block is registered correctly in WordPress?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Block does not save to database and does not preview in a new tab’ is closed to new replies.