Forum Replies Created
-
AuthorPosts
-
November 14, 2022 at 12:47 PM in reply to: ✅Warning: Illegal string offset 'parent' after last update #39119
[email protected]
ParticipantCheers Peter!
Will see if I can get that log here.
November 12, 2022 at 3:01 PM in reply to: ✅Warning: Illegal string offset 'parent' after last update #39086[email protected]
ParticipantDid some further research and seems to be a plugin conflict with The Events Calendar.
Disabled that last one to investigate further on a local setup.
August 19, 2020 at 1:17 PM in reply to: ✅Custom field added to Gutenberg block not picked up by $attributes #21345[email protected]
ParticipantOK, perhaps it's still a bug what happened but I got things sorted out...
Instead of creating an entirely new field type, I just created a regular select, filled it dynamically with the JSON data and now all is good!
August 19, 2020 at 2:39 AM in reply to: ✅Custom field added to Gutenberg block not picked up by $attributes #21341[email protected]
ParticipantWhen I add a "normal" select, it is saved in the block:
[ 'name' => 'Select Advanced', 'id' => 'select_advanced', 'type' => 'select_advanced', // Array of 'value' => 'Label' pairs 'options' => array( 'java' => 'Java', 'javascript' => 'JavaScript', 'php' => 'PHP', 'csharp' => 'C#', 'objectivec' => 'Objective-C', 'kotlin' => 'Kotlin', 'swift' => 'Swift', ), // Allow to select multiple value? 'multiple' => false, // Placeholder text 'placeholder' => 'Select an Item', ],Saved block:
<!-- wp:meta-box/wedstrijdkalender-inhoud {"id":"mb-block-bf398a9f-2c92-4b22-b00a-6678cac348ca","data":{"hans":"TESTJE","select_advanced":"csharp"}} /-->August 19, 2020 at 2:18 AM in reply to: ✅Custom field added to Gutenberg block not picked up by $attributes #21339[email protected]
ParticipantIt appears my custom field isn't saved in the block:
<!-- wp:meta-box/wedstrijdkalender-inhoud {"id":"mb-block-aed81d9a-f2b7-4e60-8bc8-4aa917b68c70","data":{"hans":"TESTJE"}} /-->Only a regular text field is saved. Tried with a custom html block but that's not saved in there either.
-
AuthorPosts