Good Mornig!
In our WordPress, users have an extra field (with Advanced Custom Fields plugin) named Comitee that associates them to a given post (of custom type).
How we can can filter users listed on DIRECTORY based on the value of both the role and that given Comitee value?
I have been trying with fep_directory_arguments
filter but can imagine how get the relationship with other users based o that custom field value
Let’s say, if we have the role_in with this values:
role__in' =>
array (
0 => 'administrator',
1 => 'delegate',
))
How can force to check a given ACF field for every ‘delegate’ role user, before showing oit on the current directory?
May be adding meta to the args return array in some way??
Any hint here would be much appreciated!!
Thanks in advance!