Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7402 closed feature request (wontfix)

BuddyPress Username Slug

Reported by: zaheer8006's profile 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)

#1 @hnla
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

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.

#2 @zaheer8006
8 years ago

hi @hnla thank you for your reply.

If i want to display buddypress extended user fields (specific fields) list as table.

example:
ID | Name | Age | City
1 - - -
2 - - -
3 - - -

How can i get these fields list as loop from buddypress tables?

Note: See TracTickets for help on using tickets.