Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Pods custom relationship field won't display custom user meta in selection list #5384
My site has a Report pod with a Depositor custom relationship field. Depositor is related to Users. The Display Field in Selection List for the Depositor field is set to a custom user meta (custom field added by a different plugin) but the Depositor dropdown on the Add/Edit screen for the Report pod is showing the display name of each user instead.
EDITED 06/05 when I realized that I extended users after creating the relationship field (just switched the order of steps to reproduce)
Was able to reproduce this myself on a separate site using a field added to the author role by ACF Pro. WordPress environment and Pods package export below are still from the site where I saw the issue originally but I can provide that for the second site if needed.
The reports pod Depositor field should show the depositor code of each user in the dropdown.
On the Add/Edit report screen (for the Report pod), the pod Depositor field shows the display name of each user even though it is set to display the custom field added to users.
I know that Pods can see the custom field because it displays it in a shortcode (
Steps to Reproduce (for bugs)
WP-Client-Specific Steps to Create a Custom Field
This is a paid plugin and I don't know if they have any sort of demo version that will allow you to do this for free. In case you are able to, here's how the custom field is set up:
In the WP Client plugin, go to Members > Custom Fields and click Add New Custom Field. In the Add Custom Field form:
WordPress Version: 5.1.1
PHP Version: 5.6.40
MySQL Version: 5.6.44
Server Software: Apache
Your User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
Session Save Path: /var/cpanel/php/sessions/ea-php56
Session Save Path Exists: Yes
Session Save Path Writeable: Yes
Session Max Lifetime: 1440
WPDB Prefix: wp_
WP Multisite Mode: No
WP Memory Limit: 40M
Current Memory Usage: 54.441M
Current Memory Usage (real): 55.000M
Pods Network-Wide Activated: No
Pods Install Location: /home/nesad/public_html/wp-content/plugins/pods/
Pods Tableless Mode Activated: No
Pods Light Mode Activated: No
Currently Active Theme: NESAD
Currently Active Plugins:
Pods Package Export (helpful!)
Workaround or Alternate Solution Until Bug is Addressed
Related Issues and/or PRs
I've tried to reproduce your issue but it all works fine here. I can switch to any meta_key I want and that field data shows in the dropdown.
Do you happen to have a dev environment that I can take a look at?