Step 1: Create A Users Pod
Pods allows us to extend the standard post types (post, pages) as well as media, users and comments with custom fields. To begin we will create a new Pod to extend users.
Pods allows us to extend the standard post types (post, pages) as well as media, users and comments with custom fields. To begin we will create a new Pod to extend users.
Reorder The Fields Before saving the Pod, we need to rearrange the order of the fields. They will have the same order in the profile editor as they do in the Pods editor, so we are going to want to put them in a logical order. Rearranging them is as simple as clicking on the …
Now its time to display these fields in the front-end. In this step we will add to, or create the author.php template so it shows information about the author and their posts.
Now it is time to create a user directory page on our page. This can be as simple as a list of names with links to author profile pages or a full fledged directory with all of the user’s information.
Before finishing we will learn how to restrict access to the user directory and limit which users will be in the directory. We will also cover other methods for getting the values of fields that are better suited for when we only need one or two of the fields at a time.
While WordPress’ built-in user profiles offer only limited fields, Pods will allow for pretty much anything we need to be added to profiles. In this tutorial we will be using plain text, number, phone number, website and avatar fields.