Issue with 'type'
-
Hi team,
I have some issue with the ‘type’ selector inside $filter_array.
I tried all the different types ( text, checkbox, radio… ) but it doesn’t to work because i’m always getting the regular text type with an operator select and an input.What i tried for example =
'date_field2' => array( 'name' => 'date', 'meta' => '_birthday', 'type' => 'date' // Gives a datepicker. Also automatically sets 'cast' to 'DATE' ), 'normal_field2' => array( 'name' => 'textarea', 'meta' => '_text', 'type' => 'textarea', // this would be text by default without declaring it 'desc' => 'Optional supporting text to help user enter data.' ), 'normal_field3' => array( 'name' => 'checkbox', 'meta' => '_text', 'type' => 'checkbox', // this would be text by default without declaring it 'desc' => 'Optional supporting text to help user enter data.' ), 'normal_field4' => array( 'name' => 'radio', 'meta' => '_text', 'type' => 'radio', // this would be text by default without declaring it 'desc' => 'Optional supporting text to help user enter data.' ),What i get for Radio =
<tr><th scope="row">radio</th><td><select id="tribe_filters_is_normal_field4" name="tribe_filters_is_normal_field4" class="no-multi"><option value="like">Recherche</option><option value="is">Est</option><option value="not">N'est pas</option><option value="gt">></option><option value="lt" selected="selected"><</option><option value="gte">>=</option><option value="lte"><=</option></select><input type="text" name="tribe_filters_val_normal_field4" value="0efzfzefez" class="text"><b class="close">×</b></td></tr>Can you help me ?
Thanks a lot !
Wilhem
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘Issue with 'type'’ is closed to new replies.