pods_view() can be used in a similar way to the WordPress function get_template_part(), but provides advanced options including the ability to utilize Partial Page Caching to cache the included output into the object cache or transients to improve performance. It can also pass data, such as all or part of your current $pods object to …
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.
That’s the end of the tutorial and its time for you to customize and extend this code to meet your needs. I give some ideas for taking this further, but I’d love to know what you come up with. Whatever it is, share the results and the code.
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 …
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.