Skip Navigation

[Resolved] I have two more requests

This thread is resolved. Here is a description of the problem and solution.

Problem:

Two questions about the select field customization.

Solution:

It needs custom codes, see detail here:

https://toolset.com/forums/topic/i-have-two-more-requests/#post-2210531

Relevant Documentation:

https://developer.wordpress.org/reference/classes/wp_user_query/

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by andersP 3 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2210527

Thank you. This is all working well now. I have one request. When the site goes live, the list of users (subscribers) will grow long. So the select statement will likely get out of hand. Is there someway we could make choosing the user easier?
1.
could there be a search for a user name to choose or a way to start typing their name into the box instead of opening a giant select list?
2.
could we narrow the list of users to those subscribers who have "liked" the project. We have the plugin WP ULike installed and working. So if 2 users have liked the project, then only 2 users would appear on the list.
Thank you.

#2210531

For the new questions:
1) There isn't such kind of built-in feature, you might consider custom codes, for example select2:
hidden link

2) We have the plugin WP ULike installed and working..
It depends on the plugin "WP ULike", you can customize the PHP codes line 10:

$speakers = get_users(array( 'role' => 'Subscriber' ));

customize the query to what you want, more help:
https://developer.wordpress.org/reference/classes/wp_user_query/

#2211159

My issue is resolved now. Thank you!

#2211161

Thanks.