Overview

You can access Custom Settings Pages for display in your theme using Pods Templates, WordPress functions or with our Pods Functions Calls.

Using Pods Templates

When you’re using a Pods Template, you’ll reference your fields in your Settings page with the standard magic tags {@field_name}. They work in the same ways as regular Pods Templates, but you won’t be able to use an Auto Template to display them, because there is no such thing as a single detail page for Custom Settings. You’ll either be using Pods Templates to display your Settings fields in a Widget or in WordPress pages using shortcodes.

Using WordPress Functions

Using the get_option function from WordPress, you will access your fields in your Custom Settings Pages created with Pods by combining the name of the Custom Settings Pod with the name of the field you’re trying to return, joining the two with an underscore. In the example below, my_settings is the name of the Custom Settings Pod, and field_from_settings is the custom field in that Pod.

Display Pods Settings Pages using Pods Functions

You can also use the Pods API functions (pods and display) to display your Custom Settings information in a theme file. You can open the standard pods object and then use display to echo the data. In these situations, the loop is not necessary because you’re not accessing a loop; Settings Pages are only one level deep.