Category : custom-fields

My theme use meta box here the fields <?php if( !function_exists(‘houzez_agent_metaboxes’) ) { function houzez_agent_metaboxes( $meta_boxes ) { $houzez_prefix = ‘fave_’; $agent_categories = array(); $agent_cities = array(); $agencies_2_array = array(-1 => houzez_option(‘cl_none’, ‘None’)); $agencies_array = array(” => houzez_option(‘cl_none’, ‘None’)); $agencies_posts = get_posts(array(‘post_type’ => ‘houzez_agency’, ‘posts_per_page’ => -1)); if (!empty($agencies_posts)) { foreach ($agencies_posts as $agency_post) { ..

Read more

I created a custom field in the category creation/edition page using this code: // Product Cat Create Page function product_cat_new_field_create_page() { ?> <div class="form-field"> <label for="product_cat_singular"><?php _e(‘Singular Name’, ‘wh’); ?></label> <input type="text" name="product_cat_singular" id="product_cat_singular"> </div> <?php } // Product Cat Edit Page function product_cat_new_field_edit_page($term) { // Getting term ID $term_id = $term->term_id; // Retrieve the ..

Read more

I created a custom field in the category creation/edition page using this code: // Product Cat Create Page function product_cat_new_field_create_page() { ?> <div class="form-field"> <label for="product_cat_singular"><?php _e(‘Singular Name’, ‘wh’); ?></label> <input type="text" name="product_cat_singular" id="product_cat_singular"> </div> <?php } // Product Cat Edit Page function product_cat_new_field_edit_page($term) { // Getting term ID $term_id = $term->term_id; // Retrieve the ..

Read more