Updated on 3 Aug 2023
This Pro tutorial is going to be a collection of tips and code snippets for using/implementing Pods in Bricks builder.
Custom Settings Page fields



How to output the value of a field in a settings page whether or not it is inside a group:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {echo:get_option( sitewide_phone )} |
where sitewide is the Pod name for the settings page and phone is the Name of the field.
URL (only applies to this particular case where the field is for storing the phone number):
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tel:{echo:get_option( sitewide_phone )} |
Another example:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {echo:get_option( sitewide_twitter )} |
Note that even though twitter field is inside a group, we pulled its value the same way without specifying the group name. For front-end usage, there is no difference between regular fields and those inside groups. It is just a matter of grouping fields to organize your admin edit screens (source).
To get the value of a field from a Pods Settings page in a Code element:
<?php
echo get_option( 'sitewide_twitter' );
?>
Yes / No Field
A Pods field of the type “Yes / No” literally returns either Yes or No depending on whether the field is ticked or not.
So in conditions you should not test for 1 or 0, but instead Yes or No.

References
https://docs.pods.io/displaying-pods/displaying-custom-settings-pages/