Skip to content

Instantly share code, notes, and snippets.

View akkolad's full-sized avatar

sébastien poilvert akkolad

View GitHub Profile
<?php
//set up pods::find parameters to limit to 5 items
$params = array(
'limit' => 5,
);
//create pods object
$pods = pods('pod_name', $params );
//check that total values (given limit) returned is greater than zero
if ( $pods->total() > 0 ) {