Created
May 31, 2016 05:10
-
-
Save jpen365/042d9226ddc803e2abf3c0c6a9c858e8 to your computer and use it in GitHub Desktop.
AJAX WP Advanced Search Template Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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