Title: match post with relevant user
Last modified: June 14, 2024

---

# match post with relevant user

 *  Resolved [hmc](https://wordpress.org/support/users/hmc/)
 * (@hmc)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/match-post-with-relevant-user/)
 * 1 – I have a post which is the job request(paint a house at specific location–
   zip code for example)
 * 2 – I have a user aka service provider who have this service and location is 
   in radius for job zip code
 * I need plugin to match 1 and 2 and trigger specific event(notification, etc)
 * is there any way it can be done?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Uncanny Automator](https://wordpress.org/support/users/uncannyautomator/)
 * (@uncannyautomator)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/match-post-with-relevant-user/#post-17825871)
 * Sorry [@hmc](https://wordpress.org/support/users/hmc/) , doing the match based
   on zip code is no problem (assuming this is stored in post meta), but matching
   something based on a “radius” isn’t something Automator could help with. We can’t
   do any type of geocoding.
 * There are some other plugins available that might help; we have done something
   similar with GEOmyWP in the past.
 *  Thread Starter [hmc](https://wordpress.org/support/users/hmc/)
 * (@hmc)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/match-post-with-relevant-user/#post-17826214)
 * matching base on zip code is something which will work. is there any documentation
   to follow?
 *  Plugin Contributor [Uncanny Automator](https://wordpress.org/support/users/uncannyautomator/)
 * (@uncannyautomator)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/match-post-with-relevant-user/#post-17826226)
 * Sure, so is the painting project a custom post type? And zip code for the job
   location is stored in post meta?
 * Is your automation workflow then that when a new job gets posted, you loop through
   users with a matching zip code value and send them an email?
 * There are largely 2 key concepts that might cause some confusion here: [https://automatorplugin.com/knowledge-base/post-meta-tokens/](https://automatorplugin.com/knowledge-base/post-meta-tokens/)
   and [https://automatorplugin.com/knowledge-base/user-loops/](https://automatorplugin.com/knowledge-base/user-loops/).
   The basic approach would have the post being published as a trigger, then you
   would loop through users (probably with some role or meta to identify them as
   vendors) and use the email action to send a communication to any of the users
   with a matching value for the zip code from post meta in the trigger. You can
   also learn more about conditions here: [https://automatorplugin.com/knowledge-base/action-filters-conditions/](https://automatorplugin.com/knowledge-base/action-filters-conditions/).
 * There is some complexity here though and please note that the use of loops and
   conditions does require our Pro version.
 *  Thread Starter [hmc](https://wordpress.org/support/users/hmc/)
 * (@hmc)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/match-post-with-relevant-user/#post-17826240)
 * yes the zip is stored in post meta
 * for example: 90210 is the post ‘customer who needs house painted’
 * we then need to match it with all users who are in catchment area with that post
   code(say 902**)
    -  This reply was modified 1 year, 11 months ago by [hmc](https://wordpress.org/support/users/hmc/).
 *  Plugin Contributor [Uncanny Automator](https://wordpress.org/support/users/uncannyautomator/)
 * (@uncannyautomator)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/match-post-with-relevant-user/#post-17826298)
 * Thanks!
 * Right now we cannot match the first 3 characters in a straightforward way, but
   there are some workarounds to make this work.
 * Once would be to pass the data to our “Call a custom function” action, where 
   you can call the “substr” function, then for your arguments, pass in the zip 
   code token, then 0, then 3. The response will be returned in a token that you
   can use in a condition, so something like this: [https://cln.sh/8KPjTctz](https://cln.sh/8KPjTctz).
   Still, that gets a lot harder if vendors can be linked with multiple zip codes
   in a single field. I guess since we’re working with the first 3 numbers only 
   you could use a “Contains” criteria option instead; that would work.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘match post with relevant user’ is closed to new replies.

 * ![](https://ps.w.org/uncanny-automator/assets/icon.svg?rev=2769432)
 * [Uncanny Automator - Easy Automation, Integration, Webhooks & Workflow Builder Plugin](https://wordpress.org/plugins/uncanny-automator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/uncanny-automator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/uncanny-automator/)
 * [Active Topics](https://wordpress.org/support/plugin/uncanny-automator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/uncanny-automator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/uncanny-automator/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Uncanny Automator](https://wordpress.org/support/users/uncannyautomator/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/match-post-with-relevant-user/#post-17826298)
 * Status: resolved