Browser: Chrome 110 OS: macOS / Windows / Linux / etc. URL: Link to a page that illustrates this issue Video: Short screen recording that illustrates this issue (free tool: jam.dev)
When I input the code everything is fine, it works on the page. However, I can’t edit it anymore. The code disappears in the editor, while still running on the page. I can only delete the widget, reload the site and put it in again. The issue seems to be the dynamic data tag {wp_user_id}, I don’t know if this happens with other dynamic data tags as well.
Confirmed. Tested exactly that use case with Bricks 1.10.1 and had the same results.
The code is still there but doesn’t get displayed in the textarea, nor can I edit that field anymore until I delete that Code element AND reload the builder.
I tried the exact same code you show in your screenshot, but with
$user_id = {wp_user_id};
because an ID should not need quotes.
Tested again, with AT disabled (the only Bricks add-on on this site).
As soon I select dynamic data like “Post ID”, the field goes blank.
Browser console shows an error in this moment: