Skip Navigation

[Résolu] Insert dividers between a-z index of categories

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created Il y a 9 années et 11 mois. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 2 réponses, has 2 voix.

Last updated by jamesG-3 Il y a 9 années et 11 mois.

Assisted by: Caridad.

Auteur
Publications
#220566

Hi all. I have a view that simply displays a taxonomy list that will be long and frequently have categories added and I would like to put in dividers between each alphabetized section. It would look like so:

A
- A Category 1
- A Category 2
B
- B Category 1
C
- C Category 1
- C Category 2
- C Category 3

Does anybody know if this is possible?

Thanks!

#220676

Dear James

To do something like this you will need to code a custom shortcode that detects when the initial changes to show the divider.

There is a similar example here that will work with little modifications:

https://toolset.com/2013/10/how-to-group-views-results-by-year-and-month/

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.

Regards,
Caridad

#221982

That worked perfectly, thank you!

Le forum ‘Types Community Support’ est fermé à de nouveaux sujets et réponses.

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