Skip to content

Instantly share code, notes, and snippets.

@nicdford
Last active February 24, 2016 19:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicdford/98c15c25218230d4cf1f to your computer and use it in GitHub Desktop.
Save nicdford/98c15c25218230d4cf1f to your computer and use it in GitHub Desktop.
filters setup
<?php
$things_to_do = pods( 'things_to_do' );
$limit = 9;
$params = array(
'fields' => array(
'region',
'activity',
'legend_items'
),
'label' => 'Update Results'
);
echo $things_to_do->filters( $params );
$params = array(
'limit' => $limit
);
$things_to_do->find( $params );
?>
<?php while ( $things_to_do->fetch() ) : ?>
<?php
echo $things_to_do->field( 'field_name' );
?>
<?php endwhile; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment