May 24, 2026 Good morning, I’d like to report that the update to WordPress 7.0 created an issue with both custom HTML and Shortcode Block. If you insert custom HTML or a Shortcode Block into a post, the code is published without any problems. If you subsequently edit the page, both disappear and can no longer be edited.
Valter
The page I need help with: [log in to see the link]
I just tried to reproduce what you described. Unfortunately, it didn’t work. For me, both HTML code and shortcodes continue to appear, no matter how many times I edit a page that contains them.
Could you please describe it in more detail, specifically which HTML code or shortcode you’re using?
I’d also recommend deactivating all plugins to rule them out as the cause.
Before the update to 7.0, the code was editable, but now it’s no longer. I’d really be interested in understanding the reason and how to fix it. Thanks – Valter
this is the condition when I edit the page
This reply was modified 3 days, 11 hours ago by valterbruno.
This reply was modified 3 days, 11 hours ago by valterbruno.
Thanks for the details. I took a look at it on my end and can’t find any problem with the shortcode in the editor.
I tested this in a fresh WordPress 7.0 installation, using only the plugin you mentioned and the HTML block you mentioned along with its content. The exact same process works without any issues in the Playground as well (except that the Playground won’t load the images on the front end, but that’s likely a Playground-specific issue).
I would therefore recommend first checking whether any other plugins might be interfering here. Try deactivating all of them except for the Gallery plugin whose shortcode you’re using.
Another tip would be: you’re getting a message saying the code is incorrect. Take a look at the surrounding code in the editor – the error might actually be caused by something completely different. To test this, you could simply create a new page and enter only the shortcode there, with nothing else.