Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom usermeta with buddypress

  • Avatar of wkolcz
    wkolcz
    Participant

    @wkolcz

    0 down vote favorite

    I am attempting to add a custom group of checkboxes for user preferences/choices to a wordpress register form using buddypress as my admin area.

    I have a custom/child register page and have the check boxes all set with a name of “prefs[]” to produce a list of responses.

    Sample:

    
    <h5>Main Ingrediant</h5>
    <input type="checkbox" id="vegetable" name="prefs[]" value="117">&nbsp;Vegetable<br />
    <input type="checkbox" id="fruit" name="prefs[]" value="116">&nbsp;Fruit<br />
    <input type="checkbox" id="grain" name="prefs[]" value="115">&nbsp;Grain<br />
    <input type="checkbox" id="meat" name="prefs[]" value="118">&nbsp;Meat<br />
    <input type="checkbox" id="fish_seafood" name="prefs[]" value="119">&nbsp;Fish & Seafood<br />
    <input type="checkbox" id="poultry" name="prefs[]" value="120">&nbsp;Poultry<br />
    <input type="checkbox" id="plant_based_protein" name="prefs[]" value="124">&nbsp;Plant-Based Protein<br />
    <br />
    <h5>Special Diet</h5>
    <input type="checkbox" id="vegetarian" name="prefs[]" value="128">&nbsp;Vegetarian<br />
    <input type="checkbox" id="vegan" name="prefs[]" value="127">&nbsp;Vegan<br />
    <input type="checkbox" id="dairy-free" name="prefs[]" value="125">&nbsp;Dairy Fee<br />
    <input type="checkbox" id="gluten-free" name="prefs[]" value="126">&nbsp;Gluten Free<br />

    How can I add this to the registration process and save it as usermeta so I can use it in the site for the user’s profile?

You must be logged in to reply to this topic.