Saltar navegación

[Resuelto] Sort a list of entries by the customers name with headings

This support ticket is created hace 5 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Etiquetado: ,

Este tema contiene 18 respuestas, tiene 2 mensajes.

Última actualización por Nigel hace 5 años, 9 meses.

Asistido por: Nigel.

Autor
Mensajes
#1206891

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hmm.

When using a View to create a select field in a form in this way I have found it to be very sensitive to whitespace that the View outputs (even when you disable the wrapper div and eliminate whitespace from the Loop Editor) but found it works when using the Loop Wizard and choosing the List with separators output format.

Could you try the same?

Edit the View and use the Loop Wizard. You'll need to insert any field as a placeholder, then replace it in the generated markup with

{"value": "[wpv-user field='ID']", "label": "[wpv-user field='display_name']"}

I think copying the whole block I posted above may have affected the whitespace.

If that does turn out to be the problem I'll need to speak to the developers about improving the output of a clean View so that whitespace isn't a problem, because it shouldn't be so over-sensitive.

#1207387

HI NIgel I am still not having any success. I have tried as you suggested and tried to remove all white spaces but no luck yet.

#1207613

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Sorry to have to ask again but I no longer seem to have access to the site, if this is the same one.

Can I get credentials from you to take a look?

#1208545

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Screenshot 2019-03-01 at 12.47.06.png

Your View didn't have the wrapper div disabled, which I've now done and the form includes the selector to change author.

May not be your fault, we had an issue with saving that setting in the previous version of Views.