Skip Navigation

[Resuelto] Parametric searches and checkboxes

This support ticket is created hace 9 años, 10 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Etiquetado: 

This topic contains 2 respuestas, has 2 mensajes.

Last updated by Brent hace 9 años, 10 meses.

Assigned support staff: Luo Yang.

Autor
Mensajes
#90998

Hi trying to set up a parametric search view and Im using the GeoPlaces WordPress theme. By default the theme allows for me to add custom fields to it. When I install views and types I have access to these custom fields. My issue Is when I try to do a parametric filter with check boxes, the labels for the check boxes look like this.
a:3:{i:0;s:6:"Casual";i:1;s:11:" Hidden Gem";i:2;s:11:" Has a view";}
a:3:{i:0;s:6:"Casual";i:1;s:15:" Small & Quaint";i:2;s:6:" Quiet";}
a:3:{i:0;s:6:"Casual";i:1;s:15:" Small & Quaint";i:2;s:7:" Rustic";}

I have- Use existing custom field values when showing this control set for this. Is their a way to output correct value without manually entering each checkbox values?

Any Ideas on how to get around this issue?

#91597

Luo Yang
Supporter

Languages: Inglés (English ) Chino simplificado (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hi Brent,

It is not possble within Types & Views, Types checkboxes field stores value as a serialized array, like this:

a:2:{s:64:"wpcf-fields-checkboxes-option-cfa5e9cc2da5cfe755fe05b391e650eb-2";s:1:"1";s:64:"wpcf-fields-checkboxes-option-6b3cf5770b5dffb479068de182d4762a-1";s:1:"1";}

each option value of checkboxes is stored into encrypted unique value.

So it is not possible to turn it into a checkboxes in Views filter form until your theme same exactly same format.

#91598

Yeah i sort of figured, just hoping there was away around it. Thanks for the help!