Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pull Pods CMS data into Wordpress template. Mainly made this gist to pull into ST2 via fetch
<?php
$field = pods('pod_name') -> find();
if ( 0 < $field->total() ) {
while ( $field->fetch() ) {
$data = $field -> field('field_name');
echo '<div class="div">';
echo $data;
echo '</div>';
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.