Skip to content

Instantly share code, notes, and snippets.

@asimpson
Created August 7, 2012 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asimpson/3285891 to your computer and use it in GitHub Desktop.
Save asimpson/3285891 to your computer and use it in GitHub Desktop.
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