Timeline for How to only list the child terms of a taxonomy and not their parents?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 16, 2016 at 8:24 | comment | added | Pieter Goosen | @dotancohen in my answer ;-) | |
Mar 16, 2016 at 8:23 | comment | added | dotancohen |
@PieterGoosen: Thank you Pieter. I just grepped the 4.4.2 source code for the strings wpse_exclude_top and exclude_top but did not find them. Nor does google know about that. Where is it documented?
|
|
Mar 15, 2016 at 18:05 | comment | added | Pieter Goosen |
@dotancohen You can do this without having to exclude top level terms on output, you can remove top level terms with the wpse_exclude_top parameter added to the query arguments ;-). I do however agree, this is faster than the accepted answer
|
|
Mar 15, 2016 at 16:51 | review | Late answers | |||
Mar 15, 2016 at 17:13 | |||||
Mar 15, 2016 at 16:46 | comment | added | dotancohen | The accepted answer runs N get_terms() calls and runs in polynomial time. This answer runs a single get_terms() call and runs in linear time. This is a much better answer. | |
Mar 15, 2016 at 16:36 | review | First posts | |||
Mar 16, 2016 at 6:57 | |||||
Mar 15, 2016 at 16:32 | history | answered | karimhossenbux | CC BY-SA 3.0 |