Issue with sorting acf field that returns an array
Please forgive me if I leave anything out or need to include more info. I am AWFUL at trying to explain stuff.
So I have a site for people to create a login. Tied to each user is an acf field (select field) for user status. When a user signs up they are assigned the status of “pending” and as the users finish specific tasks the users status will change as needed.
For example the user would submit an application and the user status would change from “pending” to “app submitted”
So the user status was created in ACF as a select field that returns both the label and value. (Set to return an array)
I am using the admin columns plugin in dashboard user section. I want to be able to filter users based off of the users status (the acf select field)
So I have tried both using the simple and smart filter. Neither work in the sense that when I try to only show users with the status of …(whatever) none show up even though that column has that status showing.
However, if I use inline edit on that field to change the status then the filter will start working for that user.
I noticed that the data is changed to a string in the DB for any user whos status is changed via inline editing.
So I am kinda stumped on why the filter only works for data that is saved as just a string. Am I missing something?
If I need to include more info I will more than happy do so. Also here are the related plugins and the version
Admin Columns Pro 5.53
Admin Columns Pro – Advanced Custom Fields (ACF) 2.6.4
You must be logged in to reply to this topic.