Skip Navigation

[Resuelto] Doubt with wpv-search-term shortcode and multiple checkboxes parameter

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
Doubt with wpv-search-term shortcode and multiple checkboxes parameter

Solution:
You can use view's shortcode [wpv-search-term] to display the values of URL params.

For example:

[wpv-search-term param='wpv-wpcf-district']

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term

This support ticket is created hace 6 años, 1 mes. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Este tema contiene 8 respuestas, tiene 2 mensajes.

Última actualización por enma hace 6 años, 1 mes.

Asistido por: Minesh.

Autor
Mensajes
#1122849
toolset-consulta.jpg

I have a view with a search engine that includes custom fields and a custom taxonomy. All of them are shown as checkboxes with the possibility of selecting multiple values.
I want to show in the results section the different checkboxes that have been selected.
I am using the shortcode wpv-search-term, with the name of the parameter. For example:
[wpv-search-term param = 'wpv-wpcf-district']

The problem is that being a multiple checkbox in the url the parameter appears as wpv-wpcf-district [].
How can I get those values? I tried it this way but it does not work for me.
[wpv-search-term param = 'wpv-wpcf-district []']

Thanks in advance

#1123521

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I noticed that there is a space between = sign with the shortcode you are using.

could you please try to use the following shortcode and try to resolve your issue:

[wpv-search-term param='wpv-wpcf-district']
#1124358

I've tried with the shortcode: [wpv-search-term param='wpv-wpcf-distrito'] and the problem persists.

I want to show in the loop editor the different checkboxes that have been selected.

#1124486

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Well - After checking to debug information you shared with us, I found that you are using outdated Toolset plugins. We always recommend running your site with latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest official released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

If your issue still persists after updating ALL Toolset plugins, please share problem URL and access details.
I have set the next reply to private which means only you and I have access to it.

#1124516

I have updated the toolset plugins and the problem persists.
In principle I am not authorized to give access to anyone external to the project. But my question is simple:

1. I created a view

2. With a search engine type checkboxes
[wpv-control-postmeta field = "wpcf-district" type = "checkboxes" url_param = "wpv-wpcf-district" class = "seldistrito"]

3. In the Loop Editor section I want to show the values that have been marked in the search engine:
[wpv-search-term param = 'wpv-wpcf-district']
But this shortcode shows nothing.

4. The paging is with manual transition and AJAX, but I have tried another type of paging and it does not work either

Is there another way to show the values that you have selected in the search engine besides the shortcode wpv-search-term?

Thanks

#1124526

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Well - I followed the same steps.

Please check the following video:
=> enlace oculto

I've displayed the URL parm at search section as well as loop output section at both sections it just works fine.

#1124530

In effect, that's what I'm looking for. Can you show me the view settings?

#1124539

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Here is my edit view screenshot:
=> enlace oculto

#1124651

My issue is resolved now. My problem was that I was using the shortcode [wpv-search-term param='wpv-wpcf-distrito'] in the Loop Editor before the [wpv-layout-start] tag. Once I have included it inside, it works.

Thank you!