prefix; $wpcat_id = NULL; //Fetch category $wpcategories = (array) $wpdb->get_results(" SELECT * FROM {$table_prefix}terms, {$table_prefix}term_taxonomy WHERE {$table_prefix}terms.term_id = {$table_prefix}term_taxonomy.term_id AND {$table_prefix}term_taxonomy.taxonomy ='" . $taxonomy . "' and {$table_prefix}term_taxonomy.parent=0 ORDER BY {$table_prefix}terms.name ASC"); $wpcategories = array_values($wpcategories); if ($wpcategories) { echo "
    "; if ($taxonomy == CUSTOM_CAT_TYPE) { ?>
  • term_id; $name = $wpcat->name; $termprice = $wpcat->term_price; $tparent = $wpcat->parent; ?>
  • POST_TYPE, 'child_of' => '', 'parent' => $termid, 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 0, 'hierarchical' => 1, 'exclude' => $termid, 'include' => '', 'number' => '', 'taxonomy' => CUSTOM_CAT_TYPE, 'pad_counts' => false); $acb_cat = get_categories($args); if ($acb_cat) { echo "
      "; foreach ($acb_cat as $child_of) { $term = get_term_by('id', $child_of->term_id, CUSTOM_CAT_TYPE); $termid = $term->term_taxonomy_id; $term_tax_id = $term->term_id; $name = $term->name; ?>
    • POST_TYPE, 'child_of' => '', 'parent' => $term_tax_id, 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 0, 'hierarchical' => 1, 'exclude' => $term_tax_id, 'include' => '', 'number' => '', 'taxonomy' => CUSTOM_CAT_TYPE, 'pad_counts' => false); $acb_cat = get_categories($args); if ($acb_cat) { echo "
        "; foreach ($acb_cat as $child_of) { $term = get_term_by('id', $child_of->term_id, CUSTOM_CAT_TYPE); $termid = $term->term_taxonomy_id; $term_tax_id = $term->term_id; $name = $term->name; ?>
      • POST_TYPE, 'child_of' => '', 'parent' => $term_tax_id, 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 0, 'hierarchical' => 1, 'exclude' => $term_tax_id, 'include' => '', 'number' => '', 'taxonomy' => CUSTOM_CAT_TYPE, 'pad_counts' => false); $acb_cat = get_categories($args); if ($acb_cat) { echo "
          "; foreach ($acb_cat as $child_of) { $term = get_term_by('id', $child_of->term_id, CUSTOM_CAT_TYPE); $termid = $term->term_taxonomy_id; $term_tax_id = $term->term_id; $name = $term->name; ?>
        • POST_TYPE, 'child_of' => '', 'parent' => $term_tax_id, 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 0, 'hierarchical' => 1, 'exclude' => $term_tax_id, 'include' => '', 'number' => '', 'taxonomy' => CUSTOM_CAT_TYPE, 'pad_counts' => false); $acb_cat = get_categories($args); if ($acb_cat) { echo "
            "; foreach ($acb_cat as $child_of) { $term = get_term_by('id', $child_of->term_id, CUSTOM_CAT_TYPE); $termid = $term->term_taxonomy_id; $term_tax_id = $term->term_id; $name = $term->name; ?>
          • "; } } echo "
          "; } } echo "
        "; } } echo "
      "; } } echo "
    "; } ?>
$meta) { $name = $meta['name']; $title = $meta['title']; $htmlnm = $meta['htmlvar_name']; $default = $meta['default']; $type = $meta['type']; $description = stripcslashes($meta['description']); $option_values = $meta['options']; $is_required = ''; if ($meta['is_require'] == 1) { $validation_field[] = array( 'name' => $key, 'span' => $key . '_error', 'type' => $meta['type'], ); } if ($type == 'text' || $type == 'geo_map_input') { if ($meta['is_require'] == 1) { $is_required = '*'; } if ($type == 'geo_map_input') { $field_type = "hidden"; } else { $field_type = "text"; } ?>
PLACEHOLDER="" value=""/>
'; echo ''; } ?>
'; } } if ($type == 'geo_map') { if ($meta['is_require'] == 1) { $is_required = '*'; } ?>
'; } ?>
*'; } ?>
*'; } ?>
' . $options[$i] . ' '; } } ?>
'; echo ''; } ?>
*'; } ?>
*'; } ?>
'; for ($i = 0; $i < count($option_values); $i++) { $chkcounter++; $seled = ''; if ($default != '') { if (in_array($option_values[$i], $default)) { $seled = 'checked="checked"'; } } echo '
'; } echo '
'; } ?>
*'; } ?>

'; } ?>
*'; } ?>
'; echo ''; } ?>
*'; } ?>
*'; } ?>
'; echo ''; } ?>