Choosing the right template
As your “User Profile”-Page is something completely custom and not the admin UI user profile page, I’d suggest to take the uthor posts page instead:
get_author_link( true, get_current_user_id() );
Then modify this template.
Pretty URls
No need to go outside the WP template hierarchy. If you want something like ~/user
, then use the Rewrite API
.
( Update )
get_author_link()
This function has been deprecated. Use get_author_posts_url()
instead.
Example
get_author_posts_url( get_current_user_id() );
https://codex.wordpress.org/Function_Reference/get_author_posts_url
Related Posts:
- Completely hide user info
- Creating User Profiles using author.php
- How to create page for user?
- Change the Author Slug from Username to Nickname
- Make display name unique
- How to display a public profile page for registered users with custom slug?
- Change the author slug from nickname to ID
- How to let contributors to create a new revision(draft) editing their published posts
- Display edit link if post author is current user
- Force display name as full name
- How to create a public profile for authors/contributors/users?
- Force users to complete their profile after they register? How to
- Upload gravatar in WP profile?
- Authors Page : A page of authors
- add ‘file upload’ field to user details
- Drop down list in user profile page
- Total Word Count For Posts And Comments By One Author
- Custom style on profile options page
- Users roles, make a page belonging to multiple users
- Add custom fields to the user profile
- Cannot set user passwords
- How to add local users to wordpress without email password?
- Disable user profile editing for one user
- the_author_meta(‘user_url’, $author->ID) not working properly. how can I solve this?
- how to make a profile entry read only except for site managers [closed]
- Forcing WordPress to work differently
- Remove user profile field [duplicate]
- How to add a user profile page to frontend?
- Where is the information about the authors for articles stored?
- Is there a way to make custom fields only editable by administrators?
- Multiple Unique Author Profiles
- Getting author page slug from get_users() or get_userdata() functions
- Delete User via Frontend
- Editable registration date field in user profile
- How to force authors to ‘submit for review’?
- Profile page for user roles
- Create Next and Previous Link to User orderby Last Name
- User profile updates password even if not filled (Theme my login) in Firefox? [closed]
- How to implement friend system for WordPress?
- How to Create a User Profile Page?
- Prevent subscribers to changing certain profile fields
- Create a “user log”
- How to display text if profile fields are not filled?
- What is correct way to change user’s email?
- Author comment count in author page
- How to hide user profile fields based on the role of the viewed user?
- Order users by user role
- How to make current user’s avatar + display name link to their profile?
- Give users alternative/second avatar that is rectangle sized
- User can manage one page accessible by everyone?
- redirect user to their profile after log in
- How can I set wp_dropdown_users so that it shows only authors?
- How to display all user profile info in myaccount page wordpress
- How to add extra field in profile page and show in myaccount?
- WordPress 5.8 – Hide or Remove personal fields from admin Profile page
- How do I update user email from frontend input field?
- How to display extra fields for user
- I need a link that directs the user that is logged to his profile
- How can i display pagination in custom comment list?
- How can i add user display name drop down menu in frontend?
- How to make custom user profile page public?
- How do I tag every author in their posts that they have made previously
- update custom field user profile from front end form
- Require confirmation of current user’s email before updating database and before send_email_change_email
- Showing extra profile fields in admin – problem with underscore
- Restrict Access to the User Profile
- How do I change the user via SQL?
- Add an ‘edit profile’ page with Genesis
- Manage user profiles with WordPress
- Separate Profiles for Users
- Add new user and user bio at same time
- Fetching posts that match a User Profile setting
- How to create a link to a user’s profile page
- show count author post today
- Validate user meta and redirect
- Designing a member area on my site
- Link to Authors blog posts
- Storing additional information about the user
- Modify Profile Biographical Info Field
- How to create front-end (editable) WordPress user profile pages?
- Disable editing profile for second time
- What techniques can a user employ to achieve a password rated “strong” in the WordPress password checker
- Cant edit profile from frontend
- Can we get user profile page using user_id in the URL?
- How to check if a user (not current user) is logged in?
- How to restrict access to uploaded files?
- importing users where password is provided as md5 + much metadata
- My custom page template with is_user_logged_in() does not detect that I’m logged in
- New users not showing up in Post -> Edit
- How can i change the name order in the admin?
- Get avatar of the logged-in user in WordPress
- How can I prevent certain custom roles from seeing other custom roles on the user list page?
- How to let the users edit their user names?
- Add Link to Users List (Backend) to open each users front-end profile
- user login and its profile
- Load Custom Field to User Profile as per User Role using Ajax
- How to show different pages for different users
- Redirect /member/ to /member/user
- WP_User object behaving strangely when used inside Admin Panel?
- Disallow user registration/checkout via Hotmail/Yahoo