Support

Account

Home Forums Feature Requests Sort Taxonomy terms Reply To: Sort Taxonomy terms

  • Hi John,

    Could you please advise in light of your suggestion above with 5.5.x as to how I can modify the below to change the ordering?

    
    $sub_categories = get_field('featured_categories');
    foreach ($sub_categories as $sub_category):
        echo $sub_category->name;
    endif;
    

    sub-category is a Taxonomy field with the return value as Term Object