?> </h1> <?php $args = array(); $args['wp_query'] = array('post_type' => 'post', 'posts_per_page' => 5, 'order' => 'DESC', 'orderby' => 'date'); $args['fields'][] = array('type' => 'search', 'label' => 'Search', 'value' => ''); $args['fields'][] = array('type' => 'post_type', 'label' => 'Post Type', 'values' => array('post' => 'Post', 'page' => 'Page'), 'format' => 'select'); $args['fields'][] = array('type' => 'taxonomy', 'label' => 'Category', 'taxonomy' => 'category', 'format' => 'multi-select', 'operator' => 'AND'); $args['fields'][] = array('type' => 'taxonomy', 'label' => 'Tags', 'taxonomy' => 'post_tag', 'format' => 'checkbox', 'operator' => 'IN'); $args['fields'][] = array('type' => 'date', 'label' => 'Month', 'date_type' => 'month', 'format' => 'multi-select'); $args['fields'][] = array('type' => 'orderby', 'label' => 'Order By', 'values' => array('' => '', 'ID' => 'ID', 'title' => 'Title', 'date' => 'Date'), 'format' => 'select'); $args['fields'][] = array('type' => 'order', 'label' => 'Order', 'values' => array('' => '', 'ASC' => 'ASC', 'DESC' => 'DESC'), 'format' => 'select'); $args['fields'][] = array('type' => 'submit', 'value' => 'Search'); $my_search_object = new WP_Advanced_Search($args); $my_search_object->the_form(); $temp_query = $wp_query; $wp_query = $my_search_object->query(); if (have_posts()) { while (have_posts()) { the_post(); ?> <h2><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h2> <p><strong>Author:</strong> <?php the_author();
<a href="" target="_blank"><img src="<?php bloginfo('template_url'); ?> /images/social-icon-gplus.png" ></a> </div><!-- .social-icons --> </div><!-- .main-navigation-wrap --> <?php if (is_singular('project') || is_page_template('page-templates/page-projects.php')) { ?> <h3>Search:</h3> <?php $my_search = new WP_Advanced_Search('my-form'); $my_search->the_form(); ?> <?php } ?> <script> jQuery(".show-main-navigation").click(function(){ jQuery(".main-navigation-wrap").slideToggle(); }); $('#mobile-menu-icon').click(function(){ $(this).toggleClass('open'); $(".sidebar").toggleClass("mobile-loaded") }); </script>
$args['fields'][] = array('type' => 'submit', 'value' => 'Search'); $args['form'] = array('method' => 'POST'); //$args['relevanssi'] = true; //instantiate search $speaker_search = new WP_Advanced_Search($args); ?> <h1 class="pagetitle"><span>Speaker Program</span></h1> <div id="speakertabs" class="speakertabs"> <div id="tabs-1"> <?php //show the form ?> <a id="search-toggle" href="#" class="search-toggle collapsed">Advanced Search</a> <?php $speaker_search->the_form(); $query = new WP_Query(); $query = $speaker_search->query(); ?> <div class="search-results"> <?php if ($query->have_posts()) { ?> <table class="speaker-archive-table" id="speaker-archive-table"> <thead> <tr> <th>Speaker Link</th> <th>Date</th> <th>Program Title</th>
<div class="sd-search-courses clearfix"> <div class="container"> <h2><?php _e('Search Courses', 'sd-framework'); ?> </h2> <?php $args = sd_wp_advanced_search(); $sd_search_course = new WP_Advanced_Search($args); $sd_search_course->the_form(); ?> </div> </div>