Need to add custom role to registration
We are looking to add an extra user role to the registration form. We have users that come to the site for blog content that dont participate in the project aspect of the site and we want to keep the users that are no actively freelancers/employers separate.
I have tried adding another option to the select in the form with help of a few tutorials I have found online. I got all the roles from the database and have them rendering out in the dropdown, however, when I select one of the default wordpress roles like subscriber, the user is assigned freelancer/employer status.
Can you please point me in the right direction to figure out how to get default wordpress user roles into the registration drop down?
Any help is greatly appreciated!