Try this, its work for me
add your functions.php
add_action('init', function(){
global $wp_rewrite;
$wp_rewrite->author_base="profile";
$wp_rewrite->flush_rules();
});
and create author.php in your theme directory.
example;
<?php
$author = get_user_by('slug', get_query_var('author_name'));
echo '<pre>';
var_dump($author);
Related Posts:
- How to remove Biography from user profile admin page
- Integrate WordPress and bbpress profiles?
- Remove Personal Options section from Profile
- Removing “Website” Field from the contact info
- How to disable profile.php for users?
- How to change profile picture in wordpress?
- Replace Gravatar with uploaded images?
- How to create a edit profile page for users?
- How do you make the email field on the profile page read only for subscribers?
- How do I remove the ‘Show Toolbar’ option?
- How to change the link “Edit my profile”?
- remove admin bar show hide option from profile settings
- displaying custom code on a given users profile page
- Make user profile field required
- How to Get User Profile Info on a Category Page
- Best way to change profile page
- The “Profile Picture” section just disappeared from my User Profile
- Fields in User Profile Page
- WP Use Profile Fields is missing
- user-edit.php profile options on TABS
- Using the filters in wordpress theme [closed]
- How display Last modified in profile wordpress [closed]
- Custom Profile Field for
- Add and Remove fields in Profile page
- Removing Fields From the Profile Page of Theme My Login Plugin
- Get WordPress author link by ID
- Add a link back to site on ‘edit profile’ page for users?
- What is the php function for “user’s public profile”
- Replace a specific profile field
- How to change name “Profile”
- Did something change in regards to custom profile fields in WP 4.8.2 (mine have disappeared)?
- Implementing profile page in wordpress
- How to remove unwanted section in profile page for only users?
- allowing user to add content, photos without giving access
- Does WP “out-of-the-box” allow user profile photos? [duplicate]
- Update user from external script
- Renaming profile sections
- Renaming/translating “your profile” page
- Is possible to modify user_login after registration?
- get current user password on the profile edit page
- Edit profile fields with TML
- Remove Personal Options section only from subscribers profile
- How to create a front end user profile with a friendly permalink
- Make display name unique
- Get basic Image Uploader on User Profile Page
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- Syncing BuddyPress and WordPress profile fields [closed]
- Linking comments from registered users to their profile pages
- How to add checkbox and radio button in Profile Page
- Permalink to user profile
- How to hide fields from my user profiles
- Rename Buddypress Profile Tab
- Frontend image uploading from edit profile page. (goldenapples)
- Photo gallery on profile page? [closed]
- How do I add a php statement to a jQuery string
- Can simple Admin save options in a Multisite?
- Can I create front-end editable user profile pages with WordPress? How do I do it?
- remove_action with profile_personal_options
- Custom user profile URLs
- Custom style on profile options page
- BuddyPress – Hook to Update Custom Profile Fields [closed]
- Is there any function available to echo current user’s profile url?
- how to make a profile entry read only except for site managers [closed]
- WordPress comments on users profile
- How to link avatar and nickname to profile
- Add multiple images to author profile page
- Customize profile.php
- Add custom profile info into Feed
- Custom profile field with birthday. Troubles with
- Reordering Buddy Press profile navigation [closed]
- Multiple Unique Author Profiles
- Allow logged in users to store and display some data
- Custom taxonomy forms for user profile
- Modify user profile data through scripting?
- Can I add my own profile.php?
- After logout browser’s back button into twenty sixteen theme profile
- Frontend Image Upload
- How to position user meta data field
- Create a “user log”
- Using xprofile_insert_field
- Show image if author meta (profile fields) exists outside loop
- Hide tab Buddypress profile for visitors, not logged in users
- Parsing a shortcode through an author meta textfield
- Customize field names in backend profile edit page through function.php [duplicate]
- How to parse a huge list of users using a CRON function?
- How to add extra field in profile page and show in myaccount?
- WordPress 5.8 – Hide or Remove personal fields from admin Profile page
- Create User with Profile and Cover Images using REST API
- Code correction – Hide a profile from visitors with a specific role
- Need help with drop down list on the profile
- Set a static page as a user profile page?
- Creating multiple profiles under one user to assign to particular posts
- WordPress User profile page fields missing
- update_user_meta(): invisible data storage
- How to copy data from user profile page (profile.php) to theme customizer
- Designing a member area on my site
- Display all existing members
- Show infos only to the author in the author.php
- How to create a widget on witch a registered user can create a checklist
- buddypress edit profile [closed]