Skip to:

Contact form 7 and Buddypress

  • nithesh123


    We want to use the buddypress existing username, email and phone number in the contact form 7. Can you please help us with the php code or short-codes of buddypress to add in the contact form 7?

    Eg: We have Email and Name fields in the contact form 7. We want that to be auto populated by their buddypress existing username and email. So that they don’t have to fill those fields again.

Viewing 1 replies (of 1 total)

  • nithesh123


    <label> Name *
    [text* your-name default:user_display_name] </label>

    <label> Email *
    [email* your-email default:user_email] </label>

    <label>Mobile Number *
    [text* number default:field_31]</label>

    <label>College *
    [select* institution include_blank “MNNIT Allahabad” “AVV Coimbatore” “IGDTUW Delhi” “IIITM-K Trivandrum” “IIT (BHU) Varanasi” “TAT Bhubaneswar” “Other”]

    <label>College Name (if other, enter your college name)
    [text othercollege]</label>

    Name and Email, I have taken default values like this. It works fine.
    But mobile number, college, other college data, I want to take it from additional profile fields that I have added from the user registration form to this contact form.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar