- Create an endpoint for
EP_ROOTnamedprofile. - In your callback handler use
get_user_by( 'slug', get_query_var( 'profile' ) )to find the user data. - Create a template file
profile.phpand uselocate_template( 'profile.php', TRUE )to load it. - In your template show the user data.
Related Posts:
- How to create a front end user profile with a friendly permalink and a 404 trigger
- How to create a front end user profile with a friendly permalink
- WordPress Rewrite
- WordPress plugin Write User/staff ID as the same as the WordPress User ID
- How to add a user profile page to frontend?
- Add Link to Users List (Backend) to open each users front-end profile
- Showing user profile data on front-end
- Get logged in username in wordpress url
- Change author base and slug in author link
- Add an ‘edit profile’ page with Genesis
- Add dynamic url with external page in WordPress
- Custom Rewrite for Profiles
- User profile in front-end
- Multiple endpoints to same page
- How to obtain the user ID of the current profile being edited in WP-Admin?
- Front end registration/login & publish/update 1 custom post
- Preserving $_GET parameter while using custom Rewrite Rule
- Handle category name URL rewrite before different post type slugs
- Rewrite rules in .htaccess get overwritten?
- Getting add_rewrite_rule and add_rewrite_tag to work
- Get user input from a form
- Dynamic URL, not a physical page within the database
- Passing & Reading URL Parameters with URL re-writing
- Prevent WordPress from automatically correcting URLs
- add_rewrite_rule and pagination issue
- Display content according to current URL
- External/non-WP rewrite rule without QSA
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- How to do Basic URL Rewrite Without Redirecting
- user-new.php less detailed after WP3.1; how to revert?
- Alias ‘wp-content’ directory to something shorter (framework?)
- Add custom fields to the user profile
- open all .docs in word online
- Disable user profile editing for one user
- url rewrite parsing a custom url parameter not working
- How to add custom variable in url without redirect?
- Using category slug in add_rewrite rule
- WordPress User Profile Upload – If page is saved file reset
- Pass a comment id through url and append the comment post’s slug in the url
- How to change the main site url on a multisite installation (network)?
- add_rewrite_rule ignoring other params than the “p” param
- optimize wordpress rewrite rule regex
- How to catch Rewrite rules then display a specific post?
- Load an url with minimal/no DB queries
- Login page is redirecting to homepage
- Front-end editing with custom fields?
- Auto generate rewrite rules for multiple taxonomies
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- URL Rewriting for PHP script on an image URL
- rewrite url for authors
- How to redirect specific URL to Subdomain
- How to rewrite wordpress urls with index.php in them
- Rewrite query string to path
- map multiple URLs to display home page without changing URL displayed in browser’s location bar
- WordPress Autocorrect URL / Slugs Does Not Work
- Profile page for user roles
- Rewrite API -Adding a parameter before the slug
- Rewrite URL based on home_url
- WordPress rewrite rule not working
- Requested URL changes when using custom rewrite rule
- Make Author Archive Page URL be a Subdirectory of a Custom Post Type URL
- Redirect old query string urls to new SEO urls
- Bilingual WP site: How to achieve different URL sturcture rule based on its language?
- What is correct way to change user’s email?
- Using a Rewrite URL in a Plugin to Load a New Page in the Template
- How can I create custom URL routes?
- Rewrite author URL to example.com/u/{user_id}/{username}/
- How to make current user’s avatar + display name link to their profile?
- How to change the displayed URL?
- How to show one page with two different templates
- URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation
- WordPress 3.1.2 Network Enabled non-www to www
- Add NUMBER in WordPress URL
- How to display all user profile info in myaccount page wordpress
- add_rewrite_rule() issue with parent/child/child page
- Rewrite only if no other matching page is found
- How to customize the Lost Password URL?
- Custom author url and page for another role
- How to make custom user profile page public?
- URL rewrite problem in WordPress plugin
- Usw add_rewrite_rule to display frontpage on specific page
- Rewriting URL with child pages
- Rewrite URL to get rid of wp-content etc and change URL
- How to add gallery slug to attachment url?
- URL Rewriting Per User
- How to Rewrite the URL
- Rewrite rules goes away
- Redirect if string found in URL
- Custom mod rewrite function not responding
- Getting URL Variables with a Rewritten Page (Login Page)
- WordPress post-type create url rewriting
- help with rewrite_tag and rewrite_rule for custom page GET variables [duplicate]
- How to create front-end (editable) WordPress user profile pages?
- How do I change my WordPress website’s address or URL?
- Rewrite URLs in a Custom Post Type with Multiple Taxonomies
- Rewrite rule giving 404 error
- WordPress picks a wrong template if ?cat= is used as URL parameter
- How to disable WordPress canonical redirect to nearest matching URL and force 404 Page?
- How to combine nearly identical custom rewrite rules for WordPress
- Allow requests to resources outside the wordpress folder