T
T
trenton2021-03-23 18:25:59
WordPress
trenton, 2021-03-23 18:25:59

How to make an alphabetical guide to taxonomy?

An attribute is also a taxonomy. It would not be easy to deduce everything in alphabetical order, but so that first the letter itself was at the top, and below it all the terms for this letter, then the same with everyone.
Please provide a code example or a link to one.
Just not plugins.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Kulikov, 2021-03-23
@anatoly_kulikov

Collect an array of all taxonomies into one array, which we need to sort into an associative array, where the key will be the first letter of the name of these terms, and the value will be an array of these taxonomies.
Then the array is filtered by keys alphabetically and output.
Maybe it could be better, but I haven't thought of it yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question