Forum Replies Created
-
AuthorPosts
-
Julien
ParticipantHello,
do you have news ?
Julien
ParticipantAdditional informations
I tried with block.json system, same issue.
Julien
ParticipantJust found solution, when SCRIPT_DEBUG set to true, the preview don't work.
It could be great to fix that in a future version ?
Doc: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/#script_debug
Thanks
Julien
ParticipantAfter more research.
If I downgrade wordpress to v6.6, no issue.When I go back to v6.7, the preview don’t work.
Julien
ParticipantI setup a standard WP on a different docker instance, it's work.
But when I try with bedrock, it's broke
Julien
ParticipantOn the network pane, I can find the ajax call to get rendered component

Julien
ParticipantAny news ?
Julien
ParticipantQuick fix could be use with REST_REQUEST: $_GET['context'] === 'edit'
// If block is called via WP-API, thats mean we are in the editor, we need to keep <InnerBlocks /> tag. if ( defined( 'REST_REQUEST' ) && REST_REQUEST && isset($_GET['context']) && $_GET['context'] === 'edit' ) { return $rendered; } $rendered = str_replace( '$', '\$', $rendered ); $rendered = preg_replace( '#<InnerBlocks([^>]*?)/>#', $content, $rendered ); return $rendered;Julien
ParticipantOk I found the problem

We use WordPress only for backend and we use NextJS for the front-end so we need to have API return correct html.
Can you adapt with a referer or something else please ?
Julien
ParticipantSorry for the images
I can't edit
Screenshot from Gutenberg

Screenshot from website

Screenshot from Rest API
December 14, 2022 at 11:02 PM in reply to: ✅RWMB_File_Field does not have a method "post_edit_form_tag" #39797Julien
ParticipantIt's already fixed, sorry I wasn't on last version
December 14, 2022 at 10:23 PM in reply to: ✅RWMB_File_Field does not have a method "post_edit_form_tag" #39792Julien
ParticipantAny idea about update ?
I have same issue
September 9, 2022 at 9:13 PM in reply to: ✅Block doesn't render on editor unless I fill some field data #38249Julien
ParticipantI need this feature too.
Any news ?
Julien
ParticipantYep it could work too but it's not really ok with documentation provided by metabox.io
I have more than 50 websites in production with metabox.io (without errors displayed), if documentation change, I will make adaptations.
Julien
ParticipantI forgot my code for testing
public function my_settings( $settings_pages ) { // Top level $settings_pages[] = array( 'id' => 'my-settings-id', 'option_name' => 'My Settings', 'menu_title' => 'Settings', 'icon_url' => 'dashicons-admin-settings', 'submenu_title' => 'Général', 'style' => 'no-boxes', 'columns' => 1, 'position' => 80, ); return $settings_pages; } -
AuthorPosts