Skip to content

Instantly share code, notes, and snippets.

@jpen365
Created May 31, 2016 05:10
Show Gist options
  • Save jpen365/042d9226ddc803e2abf3c0c6a9c858e8 to your computer and use it in GitHub Desktop.
Save jpen365/042d9226ddc803e2abf3c0c6a9c858e8 to your computer and use it in GitHub Desktop.
AJAX WP Advanced Search Template Page
<?php
/*
* This template displays the Ajax Advanced Search Page.
* Template Name: Ajax Advanced Search Page
* See http://wpadvancedsearch.com to learn more
*/
get_header();
$search = new WP_Advanced_Search('myform');
?>
<div class="row search-section">
<div id="sidebar" class="large-3 columns">
<?php $search->the_form(); ?>
</div>
<div class="search-results large-9 columns">
<div id="wpas-results"></div> <!-- This is where our results will be loaded -->
</div>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment