• 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]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator threadi

    (@threadi)

    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.

    Thread Starter valterbruno

    (@valterbruno)

    Thanks for your reply.
    The plugin I’m using is:
    Shared Albums for Google Photos (by JanZeman)
    https://wordpress.org/plugins/janzeman-shared-albums-for-google-photos/
    And this is the code used on the page

    <!-- wp:html -->

    [jzsa-album link="https://photos.google.com/share/AF1QipMFKYaC9U3kRFvb3hhiJGYUWF3D8tETOkIWz-FSp_HCOZREPN6DxNZcrf2ZehAc7g?key=MElrOHRNNTdjdVpXMTJCbE5JUmN3Rlk4UEIyOUR3" corner-radius="16" gallery-rows="2" gallery-scrollable="true" gallery-gap="8" limit="50" fullscreen-display-max-width="1620" fullscreen-display-max-height="1080"]

    <!-- /wp:html -->

    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.
    Moderator threadi

    (@threadi)

    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.

    And there’s one more thing I’d recommend. You’re using a shortcode. So I’d also suggest inserting it via the Shortcode block rather than the HTML block. See: https://wordpress.org/documentation/article/shortcode-block/

    Thread Starter valterbruno

    (@valterbruno)

    I solved it, the error was mine; an incorrect code
    Thank you very much for your support
    -Valter

    Thread Starter valterbruno

    (@valterbruno)

    So far, the shortcode seems to be working and editable.
    Thanks for your support.

    • This reply was modified 3 days, 3 hours ago by valterbruno.
Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.