Hi there,
Iam running into some problems while trying to set up my Advance WP Query Search Filter search forms…..
I have 4 different search forms and i want to display the search results on (4) different specific pages (templates)
My search.php file:
————————————————————————
<?php
/*
Template Name: Search Page
*/
get_header(); ?>
<div id=”container”>
<div id=”page”>
<div id=”tekst”>
<div id=”sidebar”>
“><img src=”<?php bloginfo(‘template_directory’); ?>/images/logo.png” alt=”Naar Home”> <!– logo –>
<h2>T: +31 (0)6 145 144 10</h2>
<div id=”verhuurknop”> “>VERHUUR</div>
<div id=”verkoopknop”>VERKOOP</div>
<div id=”sidebarwidget”>
<?php echo do_shortcode(“[awsqf-form id=12]”); ?> <!– zoekopties in sidebar –>
<?php get_sidebar(); ?>
</div>
</div> <!– einde sidebar –>
<div id=”tekstblok”>
<div id=”titel”>
<h1><?php the_title(); ?></h1> <!– titelpagina –>
</div> <!– einde titel pagina –>
<div id=”tekstcontent1kolom”> <!– een kolom template –>
<div id=”post”>
<? /*Begin Content area Query*/ ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php endwhile; ?>
<?php
if(wp_verify_nonce($query->query_vars[‘s’], ‘awqsfsearch’) ) //this will verify that the search is from the plugin
{
if($_GET[‘formid’] == ’12’){
include ‘search.php’ ;
}
if($_GET[‘formid’] == ‘128’){
include ‘search-us.php’ ;
}
if($_GET[‘formid’] == ‘191’){
include ‘search-verkoop.php’ ;
}
if($_GET[‘formid’] == ‘595’){
include ‘search-verkoop-us.php’ ;
}
else { ?>
}
<? /*End Content area Query*/ ?>
</div>
</div> <!– einde tekstblok –>
</div>
<?php get_footer(); ?>
————————————————————————
When I use this on the website i get a server error, what am i doing wrong?!
Thanks in advance,
Kind regards,
Xander