Skip to content

Instantly share code, notes, and snippets.

@nicdford nicdford/filters
Last active Feb 24, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.