Skip to toolbar


public function filters ( $params = null ) Source File: /pods/classes/Pods.php Parameters Parameter Type Details $params (string or array) Comma-separated list of fields or array of parameters Additional Parameter Options Option Type Default Details fields (string or array) $params Comma-separated list or array of field names label (string) Search Label of filter submit button action (string) n/a Action to use in form …

Read morefilters

Sorting DATE Fields Using CAST

When using SORT on a Date/Time field, the numbers in Post Meta are stored as LONGTEXT so you need to cast them as Date & Time Fields first. Typically, they are stored as yyyy-mm-dd hh:mm:ss but if you’re doing date/time math or sorting, you’ll solve a lot of issues by using CAST: CAST( date_time_field.meta_value AS …

Read moreSorting DATE Fields Using CAST