- This topic has 6 replies, 2 voices, and was last updated 3 years, 8 months ago by
conkid.
-
AuthorPosts
-
-
May 15, 2018 at 4:34 pm #8975
conkidMemberHi All,
Any checkboxes that save multiple values seem to be broken. All of my old code with multiple checkboxes works, but when multiple items are selected an error is shot out. I notice 0.11.1 is the stable version everywhere. Should fix this ASAP.
Using the following code as referenced here for checkboxes:
https://piklist.github.io/docs/tutorials/users/display-users-radio-checkbox-select-list/Only change made is to use checkbox instead of select…
piklist('field', array( 'type' => 'checkbox' ,'field' => 'my_users' ,'label' => 'Choose a user' ,'attributes' => array( 'class' => 'text' ) ,'choices' => array( '' => 'Choose User' ) + piklist( get_users( array( 'orderby' => 'display_name' ,'order' => 'asc' ) ,'objects' ) ,array( 'ID' ,'display_name' ) ) ));See the error:
-
May 15, 2018 at 7:14 pm #8977
conkidMemberThis reply has been marked as private. -
May 17, 2018 at 1:15 am #8984
conkidMemberSteve can you confirm the error?
-
May 17, 2018 at 12:02 pm #8991
-
June 9, 2018 at 5:28 pm #9049
conkidMemberSteve – I can select multiple boxes but I’m still seeing this error displayed through debug — Thoughts?
Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given in /app/public/wp-content/plugins/piklist/includes/class-piklist-form.php on line 1202 Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given in /app/public/wp-content/plugins/piklist/includes/class-piklist-form.php on line 1202
-
June 9, 2018 at 6:19 pm #9050
conkidMemberAnd another additional error in admin – piklist – settings
Piklist Settings
Warning: Invalid argument supplied for foreach() in /app/public/wp-content/plugins/piklist/parts/shared/admin-workflow.php on line 82
-
-
AuthorPosts
- You must be logged in to reply to this topic.