Skip Navigation

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

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.

Our next available supporter will start replying to tickets in about 1.65 hours from now. Thank you for your understanding.

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)

This topic contains 2 replies, has 2 voices.

Last updated by Diego Walter Ricciardi 1 year, 4 months ago.

Assisted by: Waqar.

Author
Posts
#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

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.