-
1- If I list all categories or taxonomies in select dropdown, How can I select all?
Posted 1 year ago # -
Hi,
Uh, in html select dropdown doesn't allow select all. Just you can use "multiple" select or chosen select options. for eg:
// multiple select array( 'id' => 'opt-select-4', 'type' => 'select', 'title' => 'Select with multiple choice', 'multiple' => true, 'attributes' => array( 'style' => 'min-width: 200px;' ), 'options' => array( 'opt-1' => 'Option 1', 'opt-2' => 'Option 2', 'opt-3' => 'Option 3', 'opt-4' => 'Option 4', 'opt-5' => 'Option 5', 'opt-6' => 'Option 6', ), 'default' => array( 'opt-2', 'opt-3' ), ),
CopyCopied!// chosen multiple select array( 'id' => 'opt-select-6', 'type' => 'select', 'title' => 'Select with multiple Chosen', 'chosen' => true, 'multiple' => true, 'placeholder' => 'Select an option', 'options' => array( 'opt-1' => 'Option 1', 'opt-2' => 'Option 2', 'opt-3' => 'Option 3', 'opt-4' => 'Option 4', 'opt-5' => 'Option 5', 'opt-6' => 'Option 6', ), ),
CopyCopied!Regards, Codestar
Posted 1 year ago # -
Thanks, but I don't need the custom options but talk about select all of categories or any other taxonomies.
It will be difficult to use the multiple optionPosted 1 year ago # -
Hİ,
I haven't any idea more. Do you have any example / screenshot about that request ?
Regards, Codestar
Posted 1 year ago # -
Hi,
I meant how to select all of field like this// Select with CPT (custom post type) categories array( 'id' => 'opt-select-14', 'type' => 'select', 'title' => 'Selec with CPT (custom post type) category', 'placeholder' => 'Select a category', 'options' => 'categories', 'query_args' => array( 'taxonomy' => 'your_taxonomy_name', ), ),
CopyCopied!Posted 1 year ago # -
Hi,
Unfortunately, there is no such feature.
Regards, Codestar
Posted 1 year ago #