Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
tp-education
/
template-parts
:
tp-search-tab-excursion-form.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Excursion Search Tab Form. * * @package TP Education * @since 1.0 */ function tp_education_search_excursion_form() { ?> <div class="search-wrapper clear"> <form role="search" action="<?php echo esc_url( site_url('/') ); ?>" method="get" id="searchform"> <label><?php esc_html_e( 'Search', 'tp-education' ); ?></label> <div class="search two-columns"> <div class="column-wrapper"> <?php $taxonomy = 'tp-excursion-category'; $args = array( 'option_none_value' => esc_html__( 'Excursion Category', 'tp-education' ), 'hide_empty' => 0, 'selected' => 1, 'hierarchical' => 1, 'name' => 'tp_term', 'class' => 'form-control', 'taxonomy' => $taxonomy, 'selected' => ( isset( $_GET[$taxonomy] ) ) ? esc_textarea( $_GET[$taxonomy] ) : 0, 'value_field' => 'slug' ); wp_dropdown_categories( $args, $taxonomy ); ?> <input type="text" name="date" class="datepicker" placeholder="<?php esc_attr_e( 'Date', 'tp-education' ); ?>"> <input type="text" name="s" placeholder="<?php esc_attr_e( 'keyword', 'tp-education' ); ?>"> <input type="hidden" name="post_type" value="tp-excursion" /> </div><!-- .column-wrapper --> <div class="column-wrapper"> <input type="submit" name="search" value="<?php esc_attr_e( 'Search', 'tp-education' ); ?>"> </div><!-- .column-wrapper --> </div><!-- .search/.two-columns --> </form> </div><!-- .search-wrapper --> <?php } add_action( 'tp_education_search_excursion_form_action', 'tp_education_search_excursion_form', 10 );