Home Forums General Issues ACF user relationship select box


ACF user relationship select box

  • I’ve got an ACF relationship from post types “special_offers” to Users. The usernames are auto-generated and not human readable, but have a nicer display_name field. In the new/edit admin screen for special offers, ACF generates a select box with the usernames. I’d like that select box to contain the display_name, but still generate the relationship between the user ID and the new/edited post.

    I’ve tried hooking into load_field and updating the $field[‘choices’] but that doesn’t seem to do anything on the admin screen to edit a special_offer. None of the other hooks seem to do what I want.

    Any help?

  • What version of ACF are you useing?

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

You must be logged in to reply to this topic.