• Resolved Tradedog

    (@tradedog)


    Hi All

    I need to create a “search” function for a membership site in which the user profiles are composed mostly of categories (taxonomies) and dependent tags which are selected from dropdowns when the profile is compiled.

    I need a function where any logged in user can hit a search button and a hierarchical list of members who share some or most of the categories and tags of the searcher is the output.

    The system would obviously have to reference the users own category and tag profile as the criteria to produce the match.

    Some weighting functionality would be nice but not essential.

    Can Query Wrangler do this?

    Any suggestions would be gratefully received.

    https://wordpress.org/plugins/query-wrangler/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Hi Tradedog,

    I’m sorry, but QW can’t do that. You need about 3 different mechanisms that QW doesn’t have.

    Jonathan

    Thread Starter Tradedog

    (@tradedog)

    Thanks Jonathan

    If you have any suggestions as to how this might be done with other plugins I would be grateful.

    Plugin Author Jonathan Daggerhart

    (@daggerhart)

    It really depends on how you are handling the taxonomies for users. Is this provided by Advanced Custom Fields, or another similar plugin?

    Thread Starter Tradedog

    (@tradedog)

    I am using “User Tags for WordPress” by Umesh Kumar. Users can create taxonomies and tags and it puts a dialogue into the WP Settings/Users as well as into some sign up forms in some membership plugins, but all a bit clumsy.

    http://wordpress.org/plugins/user-tags/

    Am quite happy to change if necessary

    Thx Jonathan

    Plugin Author Jonathan Daggerhart

    (@daggerhart)

    After Googling, I think the only answer is a custom query.

    WP_User_Query doesn’t support taxonomies, WP_Query doesn’t support users.

    This guy accomplished it with a custom query, but if you aren’t comfortable with PHP &/ MySQL, I don’t think it’s a good diea to copy and paste his approach: http://wordpress.org/support/topic/how-to-query-for-users?replies=4

    If you are comfortable with PHP & MySQL, then you probably just need to look in the DB to see how that plugin is storing the term relationship to users, and from there the query should be fairly simple.

    Sorry I can’t help further at the moment, I have a lot of projects on my plate with very-soon deadlines.

    Thread Starter Tradedog

    (@tradedog)

    Thanks Jonathan

    Appreciate your help

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can I do this type of search?’ is closed to new replies.