Skip Navigation

[Resolved] How do I add a map/search to a view that displays USERS not POSTS?

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/Karachi (GMT+05:00)

Author
Posts
#2697302

Uh oh! I think I might be in big trouble. I'm building a membership site with Toolset where members are users with custom fields to specify things like availability to work, experience, and their LOCATION (using toolset Maps.)

My intent was to set up a member directory where you could search for members within a certain distance of your ZIP code.

I'm 90% finished with my site, but now I think I'm running into a toolset limitation? Is it still the case (like in the ticket below) that it is impossible to add search filters (for example a "filter members within 100 km of my current location") for USERS -- that this can only be done for POSTS?

https://toolset.com/forums/topic/only-views-listing-posts-can-have-custom-search-inputs/

#2697326

Hi,

Your understanding is correct and the search filters can only be included in the views for posts.

As explained in the following guide, a recommended approach is to include a new custom post type 'User Profiles', where each user on the website, also has exactly one post as a post author in this post type:
https://toolset.com/lesson-placement/lesson-placements-1622969-1929573/

Any search operations can then be performed on these 'User Profiles' posts, instead of the WordPress users list.

regards,
Waqar