Timeline for How to orderby Taxonomy Term in a WP Query
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 5, 2022 at 6:34 | answer | added | HU is Sebastian | timeline score: 1 | |
Oct 4, 2022 at 18:34 | vote | accept | DJZEEGLER | ||
Oct 4, 2022 at 17:21 | answer | added | Tom J Nowell♦ | timeline score: 2 | |
Oct 4, 2022 at 17:06 | answer | added | rudtek | timeline score: 1 | |
Oct 4, 2022 at 16:24 | comment | added | DJZEEGLER |
i tried both 'orderby' => 'release-year' and meta_key' => 'release-year', 'orderby' => 'meta_value_num' . The first orders them by title. The second shows no results.
|
|
Oct 4, 2022 at 16:18 | comment | added | rudtek |
Did you try actually using orderby as just a string? 'orderby' => 'meta_value_num' . The ASC is actually a separate arg value order .
|
|
Oct 4, 2022 at 15:57 | history | asked | DJZEEGLER | CC BY-SA 4.0 |