term_id; } } } $categories_args = array( 'show_option_none' => '— ' . esc_html__( 'Select Categories', 'all-in-one-video-gallery' ) . ' —', 'option_none_value' => '', 'taxonomy' => 'aiovg_categories', 'name' => 'ca[]', 'class' => 'aiovg-form-control', 'orderby' => 'name', 'order' => 'asc', 'selected' => $categories_selected, 'hierarchical' => true, 'depth' => 10, 'show_count' => false, 'hide_empty' => false ); $categories_excluded = get_terms(array( 'taxonomy' => 'aiovg_categories', 'hide_empty' => false, 'fields' => 'ids', 'meta_key' => 'exclude_search_form', 'meta_value' => 1 )); if ( ! empty( $categories_excluded ) && ! is_wp_error( $categories_excluded ) ) { $categories_args['exclude'] = array_map( 'intval', $categories_excluded ); } $categories_args = apply_filters( 'aiovg_search_form_categories_args', $categories_args ); aiovg_dropdown_terms( $categories_args ); ?>
term_id; } } } $tags_args = array( 'show_option_none' => '— ' . esc_html__( 'Select Tags', 'all-in-one-video-gallery' ) . ' —', 'option_none_value' => '', 'taxonomy' => 'aiovg_tags', 'name' => 'ta[]', 'class' => 'aiovg-form-control', 'orderby' => 'name', 'order' => 'asc', 'selected' => $tags_selected, 'hierarchical' => false, 'show_count' => false, 'hide_empty' => false ); $tags_args = apply_filters( 'aiovg_search_form_tags_args', $tags_args ); aiovg_dropdown_terms( $tags_args ); ?>
'; echo sprintf( '', __( 'Sort By', 'all-in-one-video-gallery' ) ); foreach ( $sort_options as $key => $value ) { echo sprintf( '', esc_attr( $key ), selected( $key, $sort_selected, false ), esc_html( $value ) ); } echo ''; ?>
>