• Resolved nginx

    (@nginx)


    Hello,
    I’m using wordpress with buddypress.
    What I want is to get the value of a specified profile field of buddypress for each logged user to replace it in a link i have in one of my pages.

    to explain more what i have done is for a university. each student has one class code. i have made a field to let them write their class code.

    it is like “sc10002” for example.

    what i want is to replace this “sc10002” in a link which send them to their class time schedule which is like:

    hxxp://university.com/shchedule.jsp?[classid]

    how can i do it? i mean how can i order this link to replace class id with what has been set in student profile?

    i’d appropriate your help.
    thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nginx

    (@nginx)

    anyone here know about that?

    Thread Starter nginx

    (@nginx)

    although no one answered anything here 😀 I found the solution
    ill put it here for those who are looking for something like this.

    echo bp_member_profile_data('field=field name');

    just replace field name with the custom field you made!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘buddypress profile field value!’ is closed to new replies.