Support

Account

Home Forums ACF PRO Ordering posts by number field treated like a string Reply To: Ordering posts by number field treated like a string

  • Oops, I figured out that I had made a mistake.

    In my pre_get_post function I had $query->set('orderby', 'meta_value'); when it should have been $query->set('orderby', 'meta_value_num');