zoll01
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Block Builder - Lazy Blocks] ‘Save in meta’ is buggyAnyway, as a workaround for now, I solved this issues by adding the field and value to Post meta in my code. Thanks again for your great job on this Block plugin!
Forum: Plugins
In reply to: [Custom Block Builder - Lazy Blocks] ‘Save in meta’ is buggyAnd I am sorry to write this much here but I’d like to provide as much data as possible about this problem. It should be solved otherwise this text field without Meta option is useless a bit.
So, if the ‘save in meta’ is set for the text field the field is not even in the post (JSON) actually, (if I check it in code editor of the Editor). So that is why it is not saved in the database, I just had to recognize this. So in the editor the field appears visually but the data of the field is not in JSON there, as it looks like to me now.
- This reply was modified 4 years, 6 months ago by zoll01.
Forum: Plugins
In reply to: [Custom Block Builder - Lazy Blocks] ‘Save in meta’ is buggyAfter more testing what I see is that if the ‘save in meta’ is set for the text field in the Block, it actually prevent (makes it impossible) the Post saving to the database. It is a bug and I do not see any error anywhere with full error reporting turned on… strange. If I unset ‘save in meta’, the text field works well and the Post can be saved and Post data is updated in the database.
- This reply was modified 4 years, 6 months ago by zoll01.
Forum: Plugins
In reply to: [Custom Block Builder - Lazy Blocks] ‘Save in meta’ is buggyAnd this is the code I created in the Post to test and get the value, just to make sure:
// having the secondary Title if (null !== get_lzb_meta('dv-secondary-title-of-the-post')) { $halfHeroSecondaryTitle = get_lzb_meta('dv-secondary-title-of-the-post'); } elseif ($attributes['dv-secondary-title-of-the-post'] !== '') { $halfHeroSecondaryTitle = $attributes['dv-secondary-title-of-the-post']; } else { $halfHeroSecondaryTitle = ''; } var_dump(get_lzb_meta('dv-secondary-title-of-the-post')); var_dump($attributes['dv-secondary-title-of-the-post']); var_dump($halfHeroSecondaryTitle);The first dump gives back and earlier saved value,
The second dump is empty,
The third of course is the old saved value.Forum: Plugins
In reply to: [Custom Block Builder - Lazy Blocks] ‘Save in meta’ is buggyAfter little more testing: Somewhere saving to the database from the Editor is failing when ‘save in meta’ is set at text field in my case.
Forum: Plugins
In reply to: [Custom Block Builder - Lazy Blocks] ‘Save in meta’ is buggyBut, as for a good news, after updating the plugin to 2.5.1 version it looks like it is working now (still testing). Thank you! (well, I should test this more…)
- This reply was modified 4 years, 6 months ago by zoll01.
Forum: Plugins
In reply to: [Custom Block Builder - Lazy Blocks] ‘Save in meta’ is buggyHi there,
Sorry for just getting back to you this late. Thank you very much for your answer and first of all I’d like to thank you for this great plugin for WP, it is just excellent!
Now, I just updated the plugin to 2.5 version. What is happening at the moment: I create a new text control in an already created block and when I am checking that in a Post in the Editor the inputted text is refreshed and appears in the preview, but on the front-end the text data from the article is just empty (using $attributes[‘my-text’] in my code and if I use get_lzb_meta(‘my-text’) (if I set save in meta), then I am getting the text value, but after a few seconds it is always set back to the the previously saved value. Something wrong with saving the value to the database, I do not yet know what and why…