Tag Info

New answers tagged


Thanks Phil Hoyt, this was exactly what I was looking for. But, alas, I couldn't get it to work with my setup. What does work is the following: <?php // Solution for sorting by ACF custom-field for tracks categories // http://support.advancedcustomfields.com/forums/topic/sorting-categories-list-by-custom-field/ $categories = ...


I've got this fixed now. Managed to talk with my old developer and he added this: $termsById = array(); foreach ($terms as $t) { $termsById[$t->term_id] = $t; } I had to add this new variable where $terms was previously used on line 14. Thanks for your help everyone, I appreciate the effort.

Top 50 recent answers are included