Buddypress profile fields

This topic contains 2 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 7 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9727
    fillip2907
    fillip2907
    Participant

    Hi there, i am facing bit of a difficulty in setting it up to work fine.

    Users have a profile field called About me and lets taken an example for a user’s profile field value:

    About me: Account Executive | 5 Years | Delhi | MBA

    Now i want the following search terms to show up the above profile:

    Account executive in delhi
    Account executives in delhi
    accountants in delhi
    Accounts executives in delhi with 5 years experience

    What to do?Please help

    #9745
    fillip2907
    fillip2907
    Participant

    Hey i figured that out. So ignore that question.

    But here is a question:

    While the search results are displayed, i want the profile field to be displayed as well. I an configured the search for a profile field called “about me”, so i want the about me information to be displayed in the search results drop down too so that users can decide which one of from they should click on.

    #9750
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    For that purpose I believe you will have to use a custom function. Try putting this one to the functions.php file in your theme directory:

    Change the $profile_field variable value to the field you want to use.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.