Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View developez's full-sized avatar

Daniel López developez

View GitHub Profile
@developez
developez / gist:9226700
Created February 26, 2014 09:44
Show the input interfaces of the fields of a pod without forms tags and submit button like forms method
<?php
/*
Show the input interfaces of the fields of a pod without forms tags and submit button like forms method
*/
function pods_utils_show_pod_fields($pod, $selected_fields = null, $pod_id = null, $name_prefix = "", $theme_name = ""){
$pods = pods( $pod );
$fields = $pods->fields();
foreach($fields as $field) {
if($selected_fields != null)
if(!in_array($field['name'], $selected_fields))