- Create an endpoint for
EP_ROOT
namedprofile
. - In your callback handler use
get_user_by( 'slug', get_query_var( 'profile' ) )
to find the user data. - Create a template file
profile.php
and 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
- How to add custom rewrite rule to .htaccess?
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Get a list of all available fields in the User Profile
- Detect page type by url (Archive, single, page, author,…)
- Where the Nickname is being used in WordPress
- How to show the same content on multiple URLs?
- How to seamlessly redirect between different archive and singular slugs?
- Overwrite rewrite-slug of built in post-type ‘post’
- Upload gravatar in WP profile?
- Why does wordpress still strip my query var?
- When to call `add_rewrite_rule` for safety
- Rewrite Rule for Post “Subpage”, with pagination
- unexpected problem in url rewrite
- Need to make a php file inside theme accessible via url
- Remove child category from URL
- Rewrite loading custom template file but is_home() returns true, and there’s no 404
- Change WordPress comments url / word
- Cache issues with redis and nginx
- Rewrite WordPress Custom URL
- WordPress removes spaces in URL on pagination
- add_rewrite_rule not working for language specific characters
- Custom rewrite rule
- Add query string to url and display it as normal url part /folder/
- Custom style on profile options page
- Rewrite of URL with ‘[‘ ‘]’ or ‘(‘ ‘)’ as literals
- Define orderby in url
- Changing RSS feed URL structure
- Mobile version issue when domain forwarding with masking
- How to building pretty URLs to reflect category hierarchy?
- WordPress Rewrites – How can I pass a variable to Custom Post Type?
- Need to add rewrite rule that adds in additional information about the post to url
- Multiple Unique Author Profiles
- add_rewrite_rule is redirecting instead of rewriting url
- Rewrite rules automatically for pages using specific template
- Add language prefix to permalinks
- Modify user profile data through scripting?
- Custom Rewrite rule to captured post (rewrite rule to rewrite rule)
- Attachment page gives 404 if user not logged
- Rewrites: .htaccess or wp_rewrite for bulk 301 changes?
- How to pass url as a parameter in a add_rewrite_rule
- Per Page Permalink Structure for Page Post Type
- Customise particular RSS permalink
- Removing “www” from a site URL
- Replace “http://localhost:8888/” by website URL in WordPress
- Custom rewrite rule not working
- Front end post and upload file, image for users without plugin
- WP Rewrite for a custom variable
- Creating a folder structure
- How to Detect That WP is Using Mod Rewrite or $_GET variables?
- How can I allow trailing slashes on some URLs without a redirect, but not on others?
- Can’t use a specific custom URL (slug)?
- How do I get posts to appear at mydomain.com/blog?
- Adding the amp url prefix to the beginning
- Redirect to new domain that serves new and different content
- How to change search page url so that it still returns a page when there’s no search query specified?
- Custom taxonomy named ‘tag’ return 404 page
- How to redirect to a login virtual page?
- Multiple permalink with and without category for same post
- Custom Params in URL
- Implementing geotargeting while using a single database
- Url rewrite, add rule, redirect as POST request?
- Broken page redirect
- Add query arg for pretty permalinks in wordpress way
- Homepage cannot be found
- How to add 2 variable rewrite rule?
- Get custom posts by segment of the URL
- WordPress User profile page fields missing
- Add ReWrite from Old Pages to WordPress (remove .php)
- Rewrite Url to a SEO-friendly format
- Use Parent Pages for URL Structure without Landing Page
- add_rewrite Rule
- How to show my application as referral in WordPress Stats
- Fully mask *all* traces of WordPress installation subdirectory?
- Appending parameters to WordPress query string in backend
- rewrite rule of post when accessed from archives pages
- Redirect A URL Pattern In WordPress Using .htaccess
- Help to cleanup this code
- How to make a custom route with any-string-part/number-part pointing to an existing page?
- Designing a member area on my site
- username in rewritten URL, howto use it in a template
- Rewwrite rule for mapping plugin static file
- Listing Authors – URL Formats [duplicate]
- wordpress url rewrite Query Var to Static url
- Cant edit profile from frontend
- Programmatically add a custom url route “/category/index.json” to return a collection of posts in json
- WP-Include rewrite directory
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?