Viewing 14 replies - 16 through 29 (of 29 total)
  • Plugin Author TC.K

    (@wp_dummy)

    @aeboi80, there are alot of reasons. Can’t tell what is it. Maybe it is the theme or caused by other plugin problem.

    Xanderrr

    (@xanderrr)

    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

    Plugin Author TC.K

    (@wp_dummy)

    What is the error message?

    Xanderrr

    (@xanderrr)

    Hi,

    Thanks for the fast reply, this is the error message:

    Server error
    The website encountered an error while retrieving . It may be down for maintenance or configured incorrectly.
    Here are some suggestions:
    Reload this webpage later.
    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

    Plugin Author TC.K

    (@wp_dummy)

    Seem like the server error.
    There are many possibilities.

    How many filter you have in your search form? If it is too many filter, maybe you should reduce the filters.

    Or, it might be conflict with other plugin. Do you have other search plugin activated?

    Some time corrupt .htaccess File or exceeding PHP Memory Limit of your server can cause this problem as well.

    So in a nutshell, you’ll need to diagnose all the possibilities above.

    Xanderrr

    (@xanderrr)

    Thanks for your feedback.

    I combined all the searchforms/filters on/in one page, for now that will do ??

    Have a good weekend!

    <?php
    					if(wp_verify_nonce($query->query_vars['s'], 'awqsfsearch') )
    //this will verify that the search is from the plugin
    					{
    					 if($_GET['formid'] == '3267') { //include 'search-movies.php' ;
    					    //template for your form with id = 3267
    					    //get_template_part( 'content', 'museumsearch' );
    					    echo 'movie search results';
    					  }
    
    					}
    					else{
    					echo 'normal wp search results';
    					//get_template_part( 'content', 'search' );
    					}
    				?>

    I use the code above. The search results page always shows ‘normal wp search results’.

    It just doesn’t work.

    What do you mean by Try to remove if(wp_verify_nonce($query->query_vars[‘s’], ‘awqsfsearch’) ){} check.

    Never mind. I nailed it.

    hi i installed so sitemap plugin but not getting my website statitics pls rply me

    <?php 
    
    //if(wp_verify_nonce($query->query_vars['s'], 'awqsfsearch') ) {}
    
     if($_GET['formid'] == '3267'){
         include 'search-movies.php' ;
    
      }
       if($_GET['formid'] == '3268'){
        echo '3268 search results';
      }
    
    else{
    
    include 'searchbackup.php' ;
    
      }
    				?>

    https://itransl.com/?s=7d0d251485&formid=3267&taxo%5B0%5D%5Bname%5D=movie_country&taxo%5B0%5D%5Bterm%5D=wqsftaxoall&taxo%5B1%5D%5Bname%5D=movie_year&taxo%5B1%5D%5Bterm%5D=1971&skeyword=&wqsfsubmit=Search

    First, it uses custom results template. Then, it uses normal wp results template. Why? Please help.

    Well I have to disable normal WP search and replace it with awqsfsearch

    echo '<div class="awqsf_box"><p class="awqsf-button"><input type="submit" id="awqsf_submit" value="'.$options[0]['button'].'" alt="[Submit]" name="wqsfsubmit" title="Search" /></p></div>';
    echo '<input type="hidden" name="lang" value=" <?php echo qtrans_getLanguage(); ?> ">'; 
    
    echo '</form>';

    the search result is like this: https://itransl.com/?s=9eab94f60d&formid=3321&skeyword=+First+Avenger+&wqsfsubmit=Search&lang=+echo+qtrans_getLanguage%28%29%3B+

    Why doesn’t <?php echo qtrans_getLanguage(); ?> work?

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Display Search Results on a Specific Page’ is closed to new replies.