Initializing and searching returns nothing when data exists.
-
I’ve setup pods as per instructed on the website, but I am getting nothing in return value:
$params = array( 'where' => 'my_field.meta_value LIKE "%'.$date_format.'%"', ); $pods = pods('events', $params); if (0 < $pods->total()) { while ($pods->fetch()) { echo '<p>'.$pods->field('name').'</p>'; } }
$date_format is 2021-05-31 same as the value in the database along with many other variations all of which do not show when doing the above search. Total always returns zero. Please advise.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Initializing and searching returns nothing when data exists.’ is closed to new replies.