The Pod Class
(Since 1.0.0) -- initialize the Pod data retrieval class
function Pod($datatype = null, $id = null)This is the mother of all Pods functions. It allows you to initialize the Pod type you want to use. If you want to get a particular item, you can pass its ID *or slug* into the 2nd parameter.
Parameters
| Parameter | Type | Details |
|---|---|---|
| $datatype | STRING | the name of the pod you want to initialize |
| $id | MIXED | the id or slug name of the Pod item to retrieve |
Returns
NothingExamples
<?php
$pods = new Pod('event');
$pods->findRecords('id DESC', 20);
echo $pods->showTemplate('event_overview');
?>
