Last active
February 24, 2016 19:33
-
-
Save nicdford/98c15c25218230d4cf1f to your computer and use it in GitHub Desktop.
filters setup
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
<?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