get_the_author_meta accepts two parameters
$field– Field name for the data item to be returned.$userID– If a user ID is passed to the function, it will return data for the specified user ID.
So just pass the user ID or author ID eg:
if (get_the_author_meta('aim',$author_id)) { ...
Related Posts:
- WordPress User Profile Upload – If page is saved file reset
- Displaying page image in the footer automatically
- update_user_meta(): invisible data storage
- how to add radio field on user meta on function.php?
- Remove Dimension from wp_get_attachment_image
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- Extra profile field as select box?
- Can I count the number of users matching a value in a multiple value key?
- Save custom user meta on registration
- How to get users by a custom field / by user meta data?
- Change wp_get_attachment_image attributes (src and srcset) on specific custom field
- How do I make a custom field choose an image?
- How do you add a custom option to user data?
- User Profile / Add Custom Fields
- Extend WP Customizer to make multiple image selection possible
- Add multiple images to a page sidebar
- Order posts by custom field and if custom field is empty return remaining posts
- Display thumbnail from custom field
- Add custom field to image editor
- Show User Their Password
- How to update serialized data in the user meta data
- Display info from custom fields in all images’ HTML
- Calling Specific Pages with wp query Part II
- Loop through two different sets of custom fields
- automatically set “Featured Image” the same as the og:i that is set in a custom field
- copy attachments to another post type and change attachment url
- limit amount of photos uploaded per cpt post
- How can I sort get_users() by any value (last_name, user defined fields and more)
- Add description text under input field for new profile fields
- Metabox with multiple fields added by user and upload box
- Displaying additional User Contact Information
- get_user_meta Short Profile Section
- Add WYSIWYG to Image Description field
- Saving custom profile fields
- How do I exclude posts by custom field value?
- BuddyPress – Hook to Update Custom Profile Fields [closed]
- Echo values from custom field outside loop php
- Separate table or usermeta
- Calling custom profile fields?
- meta_query for a string inside a meta field containing a comma-separated list
- How to update custom user meta field in wp?
- Get Meta from Custom Field of Image URL
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- Calling custom fields for pages (not posts)
- Duplicate posts being displayed when querying Custom Fields
- Add url from Custom Field as ‘Featured Image’. Code not working
- Buddypress Add unserialized Profile Fields in Members Loop [closed]
- Loop to display random posts only if a custom field matches category
- How to add field above password section in profile page
- ACF: How to get the full field name (meta_key) by a field key?
- How do I create a column in Users list and display user data from custom registration field
- How can I show custom fields in the loop only to specific user roles?
- get_posts that match a user-specified value on a page
- How to save multiple options from a dropdown in user profile
- How to display multiple images in custom field
- How to show a gloabl message on a user profile page (in back end)?
- Accessing loop functions (e.g the_title or the_content) from post ID
- WP_User_Query pulling ACF to loop
- Users Select inside custom metabox
- How to add image attachment to post from a single meta key (Woocommerce)
- Exclude images uploaded via meta boxes from WordPress gallery
- query usermeta from custom field
- custom avatar removal
- How to add the image URL from an external RSS feed and insert into a custom field?
- Limit the number of acf content when displaying in post loop [closed]
- Excluding Specific Fields from Profile Builder Registration Form
- Add new image block, set default class name and update it using Javascript
- Better way to save image in custom field
- Custom Profile Fields move from BBpress to BuddyPress
- How do I add an image upload, custom field to a WooCommerce product?
- How to add upload video option in wordpress for user?
- Passing args to WP_User_Query am I using meta correctly?
- Is there a better way to list all database terms alphabetically?
- Change the main loop WordPress impact on the server?
- custom-meta-box checkboxes from loop won’t save
- How to show a post if was published less than two hours ago?
- List users by sum of all their posts’ custom field values
- How to save the date/time of last update of an extra user profile field?
- Frontend Image Upload
- For homepage images (for small business website), is it better to use custom fields or post_thumbnail?
- Select multiple images from custom field
- Display Custom Field for a Specific Role, but not for Admin
- Custom Fields – How to create a list from multi-line entries of a single value
- how to make nsfw post with thumbanil
- Custom Query based on custom field of a single post
- Efficiently sort only certain categories by custom field
- Can I access a post meta field before the loop?
- Get image url using image id
- Can’t save custom field on registration page
- Can’t query by meta_key
- Convert attachment ID into url?
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- How to add fields in custom registration form, validate it and aave to db? [closed]
- check for duplicate user meta data before updating
- How do you output an unknown number of images in a custom post type with desired markup?
- Custom Field Repeating When Using foreach
- Increment user meta data by 1 each time a page is visited
- Front-End User Profile
- ul list with only as many li’s as filled custom fields
- Get emails from users by custom field SQL