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?
- Advanced Custom Fields: how do I check to see if a value is set in an field? [closed]
- WP_Query – Order results by meta value
- Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
- getting all values for a custom field key (cross-post)
- How to add a custom field in the advanced menu properties?
- Custom query with orderby meta_value of custom field
- How to filter post listing (in WP dashboard posts listing) using a custom field (search functionality)?
- Using meta query (‘meta_query’) with a search query (‘s’)
- Can I exclude a post by meta key using pre_get_posts function?
- Add validation and error handling when saving custom fields?
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Show Custom Fields in Quick Edit
- Where are custom field values stored in the database
- How to get a buddypress user profile link and a certain user profile field for the current post author?
- Validating Custom Meta Box Values & Required Fields
- Max length of meta_value
- Add custom fields to wp native gallery settings
- How to fix missing custom fields after upgrading to WordPress 4.8.1?
- How to enable custom fields for pages (if not a bad practice)?
- How can I add extra attribute in the ‘Page Attribute’ section in wp-admin for pages?
- Is there a way to set default custom fields when creating a post?
- Custom post meta field effect on the performance on the post
- How to get custom post meta using REST API
- Custom field/meta populated by dropdown of existing posts?
- Difference between meta keys with _ and without _ [duplicate]
- Is there any action filter/hook for validating a custom field before publishing the post?
- Remove Dimension from wp_get_attachment_image
- Orderby meta_value only returns posts that have existing meta_key
- Underscores in custom fields
- What is the index [0] for on post meta fields?
- What is “meta_input” parameter in wp_insert_post() used for?
- Query Posts or Get Posts by custom fields, possible?
- How to enable revisions for post meta data?
- Sortable Custom Columns in User Panel (users.php)?
- Any way to add custom options to Gallery Settings?
- The “_encloseme” Meta-Key Conundrum
- ORDER BY custom field value
- Individual Widgets per Page
- Add subtitle to Woocommerce product title
- Best way to programmatically remove a category/term from a post
- Importing data for advanced custom fields plugin?
- Gutenberg add a custom metabox to default blocks
- SQL Query to copy value of a meta_key into another meta_key
- ‘Preview Changes’ for custom meta boxes?
- Adding a custom field to the site identity menu
- Using TinyMce with textareas in meta boxes on custom post types
- Filter WP_Query for posts having a certain meta-value
- How to display a public profile page for registered users with custom slug?
- How to correctly call custom field dates into a posts_where filter using SQL statements
- Using get_post_meta with new_to_publish
- Is there a way to get protected meta fields through any of the available built-in WordPress APIs? (xmlrpc, wp-json)
- Add a Jquery Datepicker to custom field in post edit
- add meta box – custom field : which to choose?
- Preserving line breaks when saving and displaying custom fields data
- How to return Meta data from the REST API?
- Advanced Custom Fields – Get custom fields from parent page
- Can I query custom meta data through WP_Query
- Add custom field to the archive page?
- Saving custom data for each user
- Tabindex on text input immediately after WordPress title input
- Including custom fields in search?
- Get a list of all available fields in the User Profile
- Add custom fields to search