Sometimes, rather than adding capabilities to an existing role, you need to create a whole new role. The code to do so is relatively easy. Again, place these lines in your theme's functions.php file: … [Read more...] about Creating roles
Users and Roles
preserving HTML
Several of the description fields in WordPress will strip any HTML entered into them. You can preserve them with a little work, though. User Descriptions The biography field on the user profile page accepts a limited number of HTML tags — the same ones allowed in comments. If you … [Read more...] about preserving HTML
Changing roles’ capabilities
If you need to change one or two capabilities, it's relatively easy to do so with a few lines of code in a plugin or your theme functions file. For example, if we wanted to allow any logged-in user to view our private posts and pages, we would need to grant them two additional … [Read more...] about Changing roles’ capabilities
Creating a user directory, part 2: Building the page template
In the first installment, we added some contact fields for our users. Now we're going to build the page template that displays the user directory. … [Read more...] about Creating a user directory, part 2: Building the page template
Creating a user directory, part 1: changing user contact fields
This is the beginning of a three-part series on building a user directory. Part 1: Changing the contact fields on the user profile pages Part 2: Building the user directory page template Part 3: Building author templates and linking them in the directory First, we'll add some … [Read more...] about Creating a user directory, part 1: changing user contact fields