Create New Record from Form Submission using Add

Real life example of a function to create a Pods record from fields submitted on a form. <?php function add_new_applicant () { // Get field values from form submission $first_name = $_POST['first_name'] $last_name = $_POST['last_name'] $telephone = $_POST['telephone'] $email = $_POST['email'] $fields = array( 'first_name' => $first_name, 'last_name' => $last_name, 'telephone' => $telephone, 'email' => …

Read more

Pods-UI Customizations including re-ordering of Fields

From Andy Fuchs/Tiptronic /* Customize a pod including re-ordering */ $object = pods('test'); $fields = array(); /* collect all fields of the pod into an array */ foreach($object->fields as $field => $data) { $fields[$field] = array('label' => $data['label']); } /* add a WP default field */ $fields['content'] = array('label' => __('content')); /* if you want …

Read more

Working with Plugins

Integrating with other Plugins and special instructions for setting up specific plugins to work with Pods.

What is the XY Problem?

What is it? The XY problem is asking about your attempted solution rather than your actual problem. This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help. User wants to do X. User doesn’t know how to do …

Read more