- 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
- custom user profiles like linktree fully customizable on the front end
- How to create custom URL routes?
- How do you create a “virtual” page in WordPress
- Use a template file for a specific url without creating a page
- Using the Rewrite API to Construct a RESTful URL
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- Change the “page” slug in pagination
- Change the Author Slug from Username to Nickname
- Understanding add_rewrite_rule
- Override default url for author pages?
- Make display name unique
- web.config conflict on IIS
- Rewrite Slug for CPT Archive Pages to Plural Name of Slug
- Change author base slug for different roles
- Masking wp-content/themes/name/images to just images directory using htaccess
- Two (or more) parallel (sub-)TLDs that are retained when surfing the site / dynamically set the site address?
- Using custom/dynamic “slug” for a page
- How to make pages slug have priority over any other taxonomies like custom-post, post or category
- Rewrite rules not working in WordPress
- How to retrieve $_GET variables from rewritten URLs?
- Dynamic Endpoints
- Passing parameters to a custom page template using clean urls
- rewrite rules and querystring
- How to display a public profile page for registered users with custom slug?
- Adding rewrite endpoint breaks static front page
- How to add custom rewrite rule to .htaccess?
- How do I remove a rewrite rule?
- How do I add a server-independent external rewrite rule?
- Multiple endpoints to same page
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Use subdomain for certain urls
- Custom Permalinks for Blog Posts Only
- Unique URL Every Time
- How to obtain the user ID of the current profile being edited in WP-Admin?
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- generate_rewrite_rules (action) vs add_rewrite_rule (function): which one is preferred?
- Get a list of all available fields in the User Profile
- Detect page type by url (Archive, single, page, author,…)
- Rewrite URL – how to do a SEO-friendly Unicode custom URL?
- I want to create a custom slug in WordPress and output JSON. How do I do this?
- How to make a category page the blog home page?
- add_rewrite_rule: $matches var not replaced by captured value
- Where the Nickname is being used in WordPress
- How to let user set password on registration
- Can I call a custom plugin with a direct URL
- How to show the same content on multiple URLs?
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- Custom rewrite rules for pages
- Rewrite default post type
- Custom permalinks with NextGEN Gallery
- Clash of the rewrites
- Using a page template without a page
- External/non-WP rewrite rules
- How-to add rewrite rules to point the uploads folder to a subdomain
- Rewrite Rules for Multiple (more than 2) Taxonomies
- Create built-in pages without creating actual pages
- Front end registration/login & publish/update 1 custom post
- How to seamlessly redirect between different archive and singular slugs?
- Is the SEO plugin necessary?
- Can ‘numberposts’ be passed in the URL query string?
- How to add dot(“.”) in post slug
- How to prevent redirection to max 2147483647 for larger values of the page query variable?
- add_rewrite_rule not loading correct page nor getting variables
- How to create a public profile for authors/contributors/users?
- Overwrite rewrite-slug of built in post-type ‘post’
- Preserving $_GET parameter while using custom Rewrite Rule
- How to change default page slug?
- Query Vars for the Homepage?
- Disable wordpress pagination URL rewrite for specific page
- How to use Post Custom Metadata in Post Titles and Post Permalinks
- Using WordPress with Apache behind an nginx reverse proxy
- Handle category name URL rewrite before different post type slugs
- Using plus (+) sign instead of space (-) in WordPress URL
- Rewrite url for custom post type
- How do i change the search permanent links
- add_query_vars and add_rewrite_rules
- How to remove “admin.php?page=” from wp-admin using .htaccess?
- add_rewrite_rule() not playing nice with child pages
- WordPress URLs without posts
- User Profile / Add Custom Fields
- rewrite_rule() not preserving the query string
- Need help with rewrite_rules_array
- Add language/country code to each possible URL
- Force users to complete their profile after they register? How to
- Google is indexing wordpress attachment pages
- How to create the pseudo static rules of the page I created