• Resolved Sean

    (@seannorton)


    I have a pod which extends meta in posts with a relationship field to lookup a user.

    I’ve used this for a few years with no issues. However, today I have discovered that this lookup field is no longer loading users. As I type the name, a message appears in the dropdown list that “The results could not be loaded.”

    I’ve performed the following actions:

    Clear Pods Cache (no fix)
    Changed Related To to another object – everything loads
    Reverted Related To back to Users – (no fix)

    I’m running WP 4.9.12, Pods version 2.7.15

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Sean

    (@seannorton)

    I’m currently troubleshooting and created a new field – the autocomplete field now works with users.

    Interesting: in the original field I have limited the list to specific roles (which includes custom user roles). The checkboxes usually are on/off, but now there are three states of the checkbox – on/on/off

    I renamed the old field and gave the new field the name of the old field. Problem repeats itself.

    Thread Starter Sean

    (@seannorton)

    I’ve narrowed down the culprit of this issue.

    So, I’ve used this relationship field to query the Users. I want to select the user’s name in order to access their email address. Although I’ve not changed this pod or its configuration since I created it in late 2017, in order for the names to start appearing again I had to remove {@email} from the Display Field in Selection List. I really need the email though.

    I hope this makes sense.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @seannorton
    Just tested this locally real quick and based on my findings {@email} is wrong. This should be {@user_email} based on the actual user properties from WordPress. Honestly I have no idea why this worked in earlier versions but it shouldn’t have worked from what I know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Relationship Lookup (Users)’ is closed to new replies.