Custom usermeta with buddypress
-
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"> Vegetable<br /> <input type="checkbox" id="fruit" name="prefs[]" value="116"> Fruit<br /> <input type="checkbox" id="grain" name="prefs[]" value="115"> Grain<br /> <input type="checkbox" id="meat" name="prefs[]" value="118"> Meat<br /> <input type="checkbox" id="fish_seafood" name="prefs[]" value="119"> Fish & Seafood<br /> <input type="checkbox" id="poultry" name="prefs[]" value="120"> Poultry<br /> <input type="checkbox" id="plant_based_protein" name="prefs[]" value="124"> Plant-Based Protein<br /> <br /> <h5>Special Diet</h5> <input type="checkbox" id="vegetarian" name="prefs[]" value="128"> Vegetarian<br /> <input type="checkbox" id="vegan" name="prefs[]" value="127"> Vegan<br /> <input type="checkbox" id="dairy-free" name="prefs[]" value="125"> Dairy Fee<br /> <input type="checkbox" id="gluten-free" name="prefs[]" value="126"> 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?
- The topic ‘Custom usermeta with buddypress’ is closed to new replies.