Skip Navigation

[Resuelto] Trying to style? Or 'group' options inside the selector of a post relationship.

This support ticket is created hace 1 año, 12 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.

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
- 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/Karachi (GMT+05:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Diego Walter Ricciardi hace 1 año, 12 meses.

Asistido por: Waqar.

Autor
Mensajes
#2505625
edited_HTML_to_show.jpg
edited_HTML_devtools.jpg
sequential_not_grouped.jpg
grouped_example.jpg
custom_post_type_hierarchical.jpg

I'm trying to group inside the selector of the post relationships, I'll post pics of what I mean.

Giving custom post type hierarchy (for the purposes of grouping really and nothing else).
For example:

Chevrolet (car brand)
- Camaro (group by Camaro)
--Camaro SS (2001 / 2011)
--Camaro RT5 (2009 / 2015)
--Camaro RT6 (2011 / 2021)
-Cruze (group by Cruze)
--Cruze AT4 (2005 / 2010)
--Cruze AT5 (2011 / 2020)
--Cruze AT6 (2021 / ...)

I'm posting pics to visualize what I'm saying.

Basically an optgroup instead of every one being a single OPT, something like what would happen with taxos.
Not sure if possible, but I do Hope so.

#2506209

Hi,

Thank you for contacting us and I'd be happy to assist.

I've performed some testing and research and unfortunately, couldn't find any built-in or straightforward customization method to achieve this.

The select field for the relationship item selection uses AJAX call with the select2 script for the autocomplete feature. So to make it use nested 'optgroup' tags, will require a major rewrite at the plugin level code.

regards,
Waqar

#2506211

Welp, I guess I'll keep trying to figure some other thing out.

My issue is resolved now. Thank you!