On an “author” page you can get a lot of the information you need with get_queried_object
and additional information with get_user_meta
. What you want (sounds like) should be in that second chunk of information.That is…
$author = $wp_query->get_queried_object();
$ameta = get_user_meta($author->ID);
var_dump($author,$ameta); // debugging
if(!empty($ameta['facebook'])) {
var_dump($ameta['yim']); // debugging
}
// and so one for each contact method that you want to show
I am sure that is not how you want the information formatted but that should get you going.
Related Posts:
- 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?
- User Profile / Add Custom Fields
- Guest Author – How can I use custom fields to create guest author link?
- Creating distinct pages for author profiles and lists of posts by author
- Add description text under input field for new profile fields
- Saving custom profile fields
- BuddyPress – Hook to Update Custom Profile Fields [closed]
- Calling custom profile fields?
- Buddypress Add unserialized Profile Fields in Members Loop [closed]
- WordPress User Profile Upload – If page is saved file reset
- How to add field above password section in profile page
- How to show a gloabl message on a user profile page (in back end)?
- Creating author profiles with extra fields and exporting that data?
- Transferring author information from a custom field to a proper author
- Excluding Specific Fields from Profile Builder Registration Form
- Custom Profile Fields move from BBpress to BuddyPress
- Display Custom Field for a Specific Role, but not for Admin
- Is author.php a core file?
- Can’t save custom field on registration page
- Show image if author meta (profile fields) exists outside loop
- How can I create a profile field group that the user can’t see?
- Get author total post votes from post meta
- wordpress multi user question
- How to parse a huge list of users using a CRON function?
- Display the output from Custom User Fields from a WordPress user profile on a WordPress Custom Page
- How can I change author of posts to the value of one of the custom field of the posts?
- Convert author metadata to a custom field
- How to save multiple custom user profile fields using repeater JQuery
- author.php not showing content if Author has no Posts
- author global display format
- want to add video upload option for front end user
- update_user_meta(): invisible data storage
- Register author, facebook connect, publish posts from front end
- How to diplay a div only if at least one author custom profile field is filled?
- Show posts containing or not custom field
- how to add radio field on user meta on function.php?
- ORDER BY custom field value
- Best way to programmatically remove a category/term from a post
- display specific custom fields
- Add new “Insert Into Post” button with another function
- Get attachment ID of author_meta image – Attachment Metadata
- Multiple meta values for same meta_key adding on “Preview Changes” hit but not on saving or updating post
- Transients vs CRON +Custom Fields: Caching Data Per Post
- Best way to allow manageable social media URLS?
- Adding a custom field or metabox to the post-thumbnail widget?
- Using WP Query to search by multiple meta fields
- Sort by posts that have a featured image?
- WP_Query display next custom post from today’s date
- Can ordering post list by meta_value cause performance issue?
- Meta_query and numeric comparison [closed]
- Title and post URL based on custom fields?
- woocommerce product custom field
- Multiple relationships in a query
- How Meta Data is different from Custom Fields of POST/PAGE in WordPress
- two custom fields question
- Display the contents of a custom field of a page on their child
- Read / Watch / Listen times – meta
- Login WP – Connect single field to an external api
- Advanced search by two criteria – sort by location and date (ascending or descending)
- Turn raw url into clickable links
- meta fields for the whole wordpress site
- Advanced Custom Fields functionality without plugin
- Get post ids sorted by meta_key
- Author posts not appearing for custom post type
- 3.8 Media Upload and Custom Meta Box
- Let’s Create Custom Field Template Documentation
- WordPress Settings API Repeatable fields
- WordPress creates new lines in postmeta table on post update
- How to add custom filed value after in wp post title
- Accessing Custom Fields on Pages
- How to Pass values to Custom Field through PHP in WordPress Posts?
- Display a different image for each page with editor
- WP_query multiple custom fields not working
- Best way to sort estates and query them (for rent? yes/no. contains office space? yes/no)?
- Only admin should be able to add a particular custom field
- Custom date column in user table not sorting correcting
- pass custom value from single.php to another file via get
- How to speed up post list slowed by update_meta_cache()?
- Custom Fields displaying in single line
- variable not passed correctly to database using custom field
- How do i call up default post title in custom posts
- Custom Field URL + description
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Page template is missing fields or is invalid when I updating the template
- Admin – Search Events by a custom field
- create a custom field that let me include other posts
- Check if value exists before saving
- Populate a select box with data stored in the database?
- Change path to child of page when uploading image via custom field
- How can I hide my section title if there is no data in custom fields?
- Meta Box Data added to header redirect
- Author.php display profile for all types of users
- Post rating using Custom Field
- Inserting custom fields into new-post.php without using the Custom Fields Template plugin?
- Advanced Custom Fields for Header that are Editable from a Page [closed]
- Shortcode not picking up custom field
- Order by a meta field in query loop
- Multiple triggers when publishing, saving or updating a post in WordPress
- If possible a field ID transfom in a Custom Field?