First of all get_users_of_blog
has been deprecated, so you should use get_users
instead, or run a WP_User_Query
.
After that, the_author_meta
echo the meta value, not return anything. To return the meta you should use get_the_author_meta()
$blogusers = get_users( $args ); // for args see codex
if ($blogusers) {
foreach ( $blogusers as $bloguser ) {
$user_location = get_the_author_meta('geo_address', $bloguser->ID );
$has_meta = get_post_meta(463, 'geo_move', true);
if ($user_location && ! $has_meta) add_post_meta( 463, 'geo_move', $user_location);
}
}
Related Posts:
- Content hooks vs User hooks
- Job of meta_key meta_value fields in database tables
- get_*_meta doesn’t always return an array
- Like & Dislike functionality using JavaScript
- Array of user ids to list of user names
- get Insert id for meta field
- help to decipher wp metadata
- Check For get_post_meta on Author Archive Page
- show user based on user_meta
- How do I retrieve the slug of the current page?
- How to extract data from a post meta serialized array?
- How to save an array with one metakey in postmeta?
- WordPress is stripping escape backslashes from JSON strings in post_meta
- Lack of composite indexes for meta tables
- Trying to get custom post meta through Jetpack JSON API [closed]
- Why is get_post_meta returning an array when I specify it as single?
- Add post meta based on another post meta value before publish post
- Save both current and new version of post meta
- Creating a custom post type upon registration
- get_post_meta – get a single value
- get_post_meta / update_post_meta array
- Triple meta_key on custom SELECT query
- update_post_meta not adding anything.(Nor add_post_meta)
- Are multiple values from get_post_meta guaranteed to be ordered?
- Identifying Importer Posts
- How metadata API works?
- How to sanitize post meta field value?
- WordPress Action Hooks and Post ID?
- Post IDs missing on delete_postmeta action hook
- How trigger to save post when updating post meta
- Create a Metabox that behaves Like a Taxonomy Box
- Views count with time limit per IP
- Is it possible to store visitors IPs in wp_postmeta table?
- order by multiple meta_keys?
- Echo page title from page with custom meta datetime picker
- echo image caption
- Generate multiple goo.gl shortlinks for qtranslate bilingual blog
- Copy content stored in meta to post content
- Creating user status mode in WordPress
- How can I convert postmeta from unserialized to serialized?
- Is there a way to append meta data without creating a race condition?
- add_post_meta adds meta to one more different post
- Custom query, multiple custom keys
- Trying to get property of non-object error using get_post_meta()
- Adding new value to existing meta key
- How can I change the tag contents of individual WordPress posts?
- get_post_meta producing white screen of death
- update_post_meta not working in plugin
- Look up all posts by status or meta value – performance difference
- Can A Post Meta Field Store multiple values that are not in an array?
- esc_attr on get_post_meta [closed]
- Sort custom posts in archive by multiple values: date AND meta key
- How is the author’s name given a different color?
- How does WordPress treats attachments metadata in post content?
- URL to Post Meta [closed]
- Retrieving post meta array (attachment)
- Get posts ordered by meta data
- Why is variable that get_post_meta stored in empty?
- using update_user_meta to rank users
- Stop `update_post_meta` from working each time page refreshes?
- Displaying values from related field – if empty shows current post type’s link and title
- Meta box with front-end styling
- get_post_meta inside echo [closed]
- WordPress postmeta: Store data as an array or single item?
- Display Post Meta in Header
- Conditional For get_the_author_meta
- Custom fields or something else
- Count Post and Page Views based on meta_value Using Shortcode in Dashboard Widget
- I want to Add Feedburner Right After Meta Details
- How to add and subtract user meta values after post meta update
- if get_post_meta function returns empty – Do Not Display HTML
- Custom column on CPT not showing correct value when meta data not set
- How to access post meta on the first time a post is published
- I Can’t get the post_tag name from term_id using wp_set_object_terms
- Creating a custom post type upon registration for a specific user role
- How to update/add child posts meta whenever the parent post meta is updated?
- How to query post with meta?
- why is my postmeta table is so heavy
- update_post_meta() throws Uncaught error: Cannot create duplicate attribute
- get_post_meta and add_post_meta not working
- Using a comma instead of a pipe to separate metadata
- Export media library with metadata and import into new blog
- Meta keys won’t add using wp_insert_post
- Re-pointing images to cloud storage
- undesrtanding get_post_meta function
- How Can I extract Image urls from post meta
- Twenty Twelve entry meta data – change and move
- How can I prevent the post_modified column in wp_posts from being updated?
- wordpress simple post multi rating with post_meta and user_meta
- Sorting meta box values by start- and enddate and all dates in between
- Use an id on a button to update_post_meta in post
- get_post_meta image width for lazy load
- Custom Fields help
- get_post_meta of multiple posts?
- WP-API : post_meta not updated… but have another entry
- Parse error thrown by get_post_meta [closed]
- How to get all the related ids without array?
- Remove action of an external plugin after checking if custom post meta is set
- wordpress query making site very slow
- if condition from post_meta not working in save_post