$value ) { if ( get_option( 'propertyhive_active_departments_' . str_replace("residential-", "", $key) ) == 'yes' ) { $department_options[$key] = $value; } } foreach ( $department_options as $key => $department ) { echo '' . esc_html($department) . ''; } ?>
'' ); $args = array( 'hide_empty' => false, 'parent' => 0 ); $terms = get_terms( 'property_type', $args ); if ( !empty( $terms ) && !is_wp_error( $terms ) ) { foreach ($terms as $term) { $property_types[$term->term_id] = esc_html( $term->name ); echo 'term_id, $_POST['property_types'] ) ) { echo ' selected'; } echo '>' . esc_html( $term->name ) . ''; $args = array( 'hide_empty' => false, 'parent' => $term->term_id ); $subterms = get_terms( 'property_type', $args ); if ( !empty( $subterms ) && !is_wp_error( $subterms ) ) { foreach ($subterms as $term) { $property_types[$term->term_id] = esc_html( $term->name ); echo 'term_id, $_POST['property_types'] ) ) { echo ' selected'; } echo '>- ' . esc_html( $term->name ) . ''; } } } } ?>
'' ); $args = array( 'hide_empty' => false, 'parent' => 0 ); $terms = get_terms( 'location', $args ); if ( !empty( $terms ) && !is_wp_error( $terms ) ) { foreach ($terms as $term) { $locations[$term->term_id] = esc_html( $term->name ); echo 'term_id, $_POST['locations'] ) ) { echo ' selected'; } echo '>' . esc_html( $term->name ) . ''; $args = array( 'hide_empty' => false, 'parent' => $term->term_id ); $subterms = get_terms( 'location', $args ); if ( !empty( $subterms ) && !is_wp_error( $subterms ) ) { foreach ($subterms as $term) { $locations[$term->term_id] = esc_html( $term->name ); echo 'term_id, $_POST['locations'] ) ) { echo ' selected'; } echo '>- ' . esc_html( $term->name ) . ''; $args = array( 'hide_empty' => false, 'parent' => $term->term_id ); $subsubterms = get_terms( 'location', $args ); if ( !empty( $subsubterms ) && !is_wp_error( $subsubterms ) ) { foreach ($subsubterms as $term) { $locations[$term->term_id] = esc_html( $term->name ); echo 'term_id, $_POST['locations'] ) ) { echo ' selected'; } echo '>- - ' . esc_html( $term->name ) . ''; } } } } } } ?>
>