Support » Plugin: Custom Field Bulk Editor » Radio and checkbox

  • Resolved Everlast00

    (@everlast00)


    Thanks for this plugin! It works great =) That is, for text input.

    Is it possible to make this work for radio inputs and checkboxes?

    The checboxes are as follows:

    <input type="checkbox" name="cuztom[_settings_radio][]" id="_settings_radio_value1" class="cuztom-input" value="value1">
    <input type="checkbox" name="cuztom[_settings_radio][]" id="_settings_radio_value2" class="cuztom-input" value="value2">

    I can’t get it to work 🙁

    https://wordpress.org/plugins/custom-field-bulk-editor/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author sparkweb

    (@sparkweb)

    Can you look in the database in the wp_post_meta table and tell me what these fields look like? Is the name cuztom and the value serialized? If so, it might just be a case of needing to pass in pre-serialized content.

    Thread Starter Everlast00

    (@everlast00)

    Aah, I can see, when I just check the checkbox and save, the input is

    a:1:{i:0;s:6:"value1";}

    So I need to unserialize some things. How would I do that? Completely blank here =p

    Plugin Author sparkweb

    (@sparkweb)

    well if you want to change value1 to value2, just put that whole string in there. Just be aware the s:6 is the number of characters expected. So if you are changing to value11 the s:6 has to change to s:7 also.

    Or just use this tool: http://blog.tanist.co.uk/files/unserialize/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Radio and checkbox’ is closed to new replies.