Home Forums General Issues Order get_post_custom_keys() by Position


Order get_post_custom_keys() by Position

  • Is there a way to sort what’s returned by get_post_custom_keys() by Position?

  • You mean by the position that they appear in an field group? No. There isn’t any way to order any value returned for a list of fields by any function, acf or otherwise, that will automatically sort the fields in the order that they appear in an ACF field group. When using this function the fields are returned in the order that they were added when editing a post.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Order get_post_custom_keys() by Position’ is closed to new replies.