You can use either an acf/load_field or an acf/prepare_field filter. Using the former will cause a permanent change to the field when/if you edit it. Using the latter will only alter the order when an editor is using the field.
To alphabetically sort choices in an ACF “Select” field:
Edit the field group in the WordPress dashboard.
Locate the “Select” field and manually reorder choices or use the “Order Choices” button for alphabetical sorting.
Save the field group.
Choices in the “Select” field will now appear in the specified order when editing or adding posts.
Always backup data before making changes, and refer to the latest ACF documentation for any updates.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users