check out my older article
HOW TO ADD WORDPRESS AUTHOR BIO & PROFILE PAGE
https://phirebase.com/blog/how-to-add-author-bio-profile-page/
just short example to add Twitter and Facebook fields:
function my_new_contactmethods( $contactmethods ) {
// Add Twitter
$contactmethods['twitter'] = 'Twitter';
//Add Facebook
$contactmethods['facebook'] = 'Facebook';
return $contactmethods;
}
add_filter('user_contactmethods','my_new_contactmethods',10,1);
Single loop
<?php the_author_meta('facebook'); ?>
– show facebook name
<?php the_author_meta('twitter'); ?>
– show twitter name
Author page
<?php echo $curauth->facebook; ?>
– show facebook name
<?php echo $curauth->twitter; ?>
– show twitter name
Related Posts:
- Remove update nags for non-admins [duplicate]
- Any guides on creating custom admin pages?
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- renaming an admin menu item with decimal array index number
- Jquery no more loading, load-scripts.php not found (404)
- Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress
- How do I remove a require_once admin panel from the parent theme from the child theme functions.php?
- Handling error states with admin_post
- Installing wp3.2.1 on IIS; getting empty sessions
- How do I add a php statement to a jQuery string
- Admin Menus – Name Menu different from first Submenu [duplicate]
- the_author_meta not working
- Add a Custom Class to Admin Menus
- How can I default to all WordPress roles when parameter is not included in shortcode?
- When is is_admin() available?
- Removing WordPress profile fields from non-admins
- Creating a new page and automatically associating it with a template in WordPress
- Unable to set right time in admin and frontend template
- List User order by ID in Descending order (Backend)
- Why is this Ajax not working?
- Admin Options page. Save as Array
- WooCommerce – Email admin with new user details
- Correct folder permissions?
- Custom profile field with birthday. Troubles with
- Reordering Buddy Press profile navigation [closed]
- Selectbox in admin panel function linking to CSS
- Sort custom meta column by other meta value
- How to retrieve current wordpress profile page URL?
- Modify user profile data through scripting?
- running wp-cron.php using php not wget
- Programmatically create page when saving custom post type post
- Building a WordPress App
- WordPress Stripping Colons?
- How can I open up my administrative panel to everyone?
- retain querystring values when savincustom options in admin
- Get categories names as an array to use it in theme settings
- Get Page ID from Backend
- Override user-edit.php to design own profile page
- Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?
- Removing custom sort order from admin page listing
- I installed WordPress locally now how do I login?
- php return username of currently viewed author profile
- Adding a ‘style=’ bit to image_send_to_editor output
- Customize field names in backend profile edit page through function.php [duplicate]
- Get options from database using php class
- Limit ‘contributers’ abilities in WordPress
- Generate a QR code when creating a new WordPress user
- In PHP how do I make my navigation bar show certain links to admins only?
- Woocommerce display orders with products from specific categories to specific admins
- PHP warning – Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php
- admin panel – How to remove “delete” button from category editing page
- wordpress email checker on domain
- problem connecting to the administrator
- How to add a DELETE button to the “Edit User” WordPress admin page?
- How to add locations input to user profile?
- Updating User Profile information removes image
- Editing the term_order field
- Access to “My Site” is missing from the admin bar
- Following/Followers Users list Using Ajax Pagination inside Author Profile
- wordpress ajax return 0
- Dynamic form variables for post meta
- Include administrator in author list
- Shortcodes (with a space) added to php Sample
- Image not displayed
- WordPress display name string manipulation
- Adding Media button to only pages
- Forbid certain users to access a specific page
- One folder to be accessible by one user
- Exclude Everywhere but Admin Area?
- AJAX WP_Query’s order and orderby parameters not working
- How can I catch WordPress custom settings page slug has already changed?
- wordpress wp_enqueue_script() not working
- Shortcode returns values in the wrong order
- Theme requires allow_url_include = on in php.ini
- Custom plugin settings link doesn’t append current class to menu item when visited? Why?
- Make PHP work with HTML tags
- Does wordpress templates always in files or in database?
- WordPress admin-ajax.php 400 bad request
- Not connecting to database in file with multiple MySQL connections
- Which is the correct way to conditionally enqueue a CSS file?
- Custom Background by Page IDs
- how to remove colon and white space in a string by php
- Concatenate output of php function into string
- get_template_part for specific page
- Do wordpress create a new file for each new post?
- Error call_user_func_array() expects parameter 1 to be a valid callback when using image_size_names_choose
- Way to bulk make all my tags lowercase?
- Why File_exists returns true with or without ABSPATH?
- proper way to add css using functions.php?
- WordPress style.css not updating, only after theme reload
- WordPress automatically adds links to uploaded images
- $Wpdb post meta query is not working with mutliple meta keys and values? [closed]
- class_exists returns different values [closed]
- Remove author link wherever author’s name is display
- How do I create my own .php file with a code part and echo it on different pages?
- Security for data obtained from the database
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- post thumbnail, conditions, else wont work
- “Undefined index” error when saving empty array with checkboxes
- Adding logo to WordPress header