I have a custom WP widget with a select and several checkboxes.
Being added to column the widget select works fine – on saving it really saves select value;
But checkboxes lose their value.
I looked through some examples and I see that normally input name should be rendered as nested
widgets[c77][program_id]
But name attributes of my checkboxes are rendered as
widget-studyprogram_widget-c77-hide_image
I tried to get into the plugin code but it’s really hard to undestrand.
P.S. My widget checkboxes works fine being used through native WP mechanisms like adding to sidebar.
Thank you.
Hi Amorphine,
Can you please clarify what is visible when you inspect the $_POST on form submission? Ideally, you should check when you’ve ticked a checkbox.
Hi Alex!
Thanks for reply.
I discovered the issue is up to the widget generator I used. It produces not really valid code so it turned out to be incompartible with the Page Builder (incorrect input name attributes, incorrect passing values between new/old instances while saving process).
Sorry to waste your time. I tried to close the topic but I couldn’t.
Thank you.