Custom Fields

To access custom field values in a Repeater Template you must define global $post; at the top of the repeater and pass the $post->ID to the custom field function.

Pro Tip: Don’t forget to declare global $post; at the opening of your template


« Back to Code Samples