#7402 closed feature request (wontfix)
BuddyPress Username Slug
Reported by: | zaheer8006 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
Hello everyone!
I want to link member_name to his/her profile which i retrieved from buddyPress table.
Example: https://mydomain.com/members/member_name/
(/member_name/) this is i want dynamically in url as slug.
Example2:
Members:
ZAHEER
AHMAD
if i click on ZAHEER the url must be as https://mydomain.com/members/zaheer/
AND
if i click on AHMAD the url must be as https://mydomain.com/members/ahmad/
THank YOu
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hi @zaheer8006,
You don't need to be retrieving data via table queries BP provides a large number of template tags and functions for this type of thing.
You'll want something like:
bp_core_get_user_domain()
feed that a WP user id and it will return a formed url string pointing to the users account.If you need further help the BP forums will probably be able to provide more detail.
P.S it's best for example urls to use 'example.com' if possible as it's a reserved domain name for this purpose.