Skip to content

Instantly share code, notes, and snippets.

@developez
developez / gist:9226700
Created Feb 26, 2014
Show the input interfaces of the fields of a pod without forms tags and submit button like forms method
View gist:9226700
<?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))