Loop Builder to Query Users + User Meta + Custom Fields #29987
pingram3541
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe..
Many clients want to list a directory for many types such as agents, sales people, consultants, members etc. Allowing Users and user meta to be queried by the loop building opens the door for much advanced creativity such as directory filters by category or a custom field such as having a "region" value or maybe the user has upcoming shows stored as custom field data. Currently there is no solution but to write a very extensive work around (see #28295)
Describe the solution you'd like.
A new Loop Builder query type, for example Users instead of Posts.
Similar abilities to filter the query.
Similar abilities to use with filter widget.
Support for User Meta / Custom Fields (ACF)
(additions of user options w/ dynamic data choices within each widget)
Describe alternatives you've considered.
I've written my own. It works, but it was a lot of work and it's hacky creating a custom post that is identical and synced with every user so we can create a directory and then use ajax to pass different query id's, re-render the widget and rebuild the DOM with the new html and proper pagination structure.
Additional context
One area of the web page builder experience that has been neglected is Memberships. There are no widgets related to listing of people.
Agreement
All reactions