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 to return number of found rows from SELECT query
- WP API V2 returning Invalid User ID
- PHP echo text being output in incorrect order
- Callback URL in WordPress
- syntax issue on php 7.4
- putting Mailto: and Tel: into footer.php code wordpress
- PHP file won’t work in wordpress folder, but works in another virtual host
- Use URL Rewrite as well as $_GET parameters in URL?
- I want to add custom add to cart link [closed]
- wordpress wp_enqueue_script() not working
- What is the proper way to include a PHP framework into my theme?
- Help with page nav?
- Design with Elementor and code the rest?
- How to use mysql LIKE with wpdb?
- Get all posts as an array ID => Name
- cURL error 6 on news area, and also won’t auto update
- How to manually trigger a redirect to another page without changing the url address?
- How to use title attributes in sidebar widget?
- How to get my [shortcode] rendered on the home page, other pages are fine
- Wp favorites posts by specific category? [closed]
- How to add JS script in specific pages in WordPress?
- Fatal error login WordPress [duplicate]
- Pagination contents not changing in Front page WordPress
- How to select post ID for given parent name with nested prepared queries?
- Running a PHP SQL script on a wordpress page
- How to apply ‘add two more posts’ to media content?
- How to disable sub menu items from being created?
- How do I modify the Previous and Next Page posts on blog pages to include “previous” and “next” before the links?
- On selecting shortcode generate selected shortcode table inside page editor worrdpress
- Pagenav Not appearing on custom Template