I have a site that I am managing where a user account is assigned to multiple Markets (in this case, Market is a custom post type). Example below:
- Atlanta, GA
- Orlando, FL
- Mobile, AL
- Nashville, TN
- Baltimore, MD
- San Diego, CA
- Phoenix, AZ
I have an acf_form() that has a Post Object field that is connected to Markets. However, that field loads in all the Markets. I want to only load in the Markets that the user is associated with.
Is it possible to create a Post Object field (or heck, even a dropdown) that is allowed to be dynamic based on the user that logs in? I know there are ways to hook into the values of a dropdown in PHP, but that permanently changes the dropdown selections, so that hasn’t worked.
Any suggestions are welcomed! Thanks!