Forums › Forums › Search & Filter Pro › Search by Author Custom Profile Field (City)
Tagged: authors, city, custom field
- This topic has 5 replies, 4 voices, and was last updated 8 years ago by
Trevor.
-
Ross Moderator(Private) March 15, 2017 at 7:03 pm #97125
Hey Juan
You *could* achieve something like this by adding it to post meta.
So when a user is assigned to a post (probably
save_post
hook), you can copy the user meta, into a post meta (likely the WP functionupdate_post_meta
).Once you’ve got it in post meta then you can add it to the form.
The only thing you’ll have to watch out for is when the Author Custom Field is updated (I’m not sure if this should be happening regularly, or if its static once set) then you would need to update all references in the DB – again something thats doable with WP but may be overkill.
Best
Anonymous(Private) August 9, 2017 at 2:54 am #125209I think having the ability to have the plugin cache the user table would be a great “future” feature. I have a number of instances where I have created ACF fields for the user and it would be great to be able to filter some of those fields. I actually have a place I could use it right now 🙂
Anyways…awesome plugin and happy to support it!
-
AuthorPosts