Code Snippets

Collections of all of our Hook & Filters, Pods Templates and Template Examples

Modify relationship select field labels

Posted in , , , , ,

Within the UI you can change the display field of a relationship field to a single other value using the “Display field” option: https://docs.pods.io/fields/relationship/ For most cases this is sufficient but there are cases in which you would want to have a more descriptive label …

Read more

Using Pods Gravity Forms Add-On to Edit a Specific ID

Posted in , ,

Using specific filters, you can load a specific id into a Gravity Form with a Pods Feed established even if the form is not embedded on the Post

Using Pods Templates for Search

Posted in , , ,

A simple way to include Pods Templates in Search Results, using the name of the Pods Template.

Find Users with Specific Role or Capability

Posted in , , , , , ,

Easy ways to find users based on role and capability or other user meta

Build Anything with Pods! Pods Template Examples

Posted in , ,

All the Pods Templates examples used in Build Anything with Pods

Users List Template.php from Creating a User Directory Tutorial

Posted in , , ,

Full Users List Template from the Tutorial

Author.php from Creating a User Directory with Pods

Posted in , ,

Used in the User Directory Tutorial to replace the built-in author.php in your theme.

Dynamically Populate a Gravity Forms Field from a Pods Related Field

Posted in , ,

Dynamically populating a Gravity Form field without creating a Pods Feed for the form.

Ordering CPT Archive by Custom Fields

Posted in , ,

Helpful when you need to set the default sort order of your custom post type archives based on values of custom fields within that post type.

Add Fields to Pulldown Lists in Gravity Form Dynamic Population from Pods Feed

Posted in , , ,

Modify what is displayed in the pulldown lists for the dynamic lists using the Pods Gravity Forms Add-on