Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter creatile

    (@creatile)

    I found a solution with conditional statement in my search.php template

    <?php if ( $post->post_type == 'post' ) : ?>
    
    <?php endif; ?>

    Plugin Author TC.K

    (@wp_dummy)

    Glad you found the solution.

    Plugin Author TC.K

    (@wp_dummy)

    In case you don’t to want to messed up with your original search result. You can use this as your conditional statement.
    <?php if($_GET['s'] == 'wqsf09be82574' ) { ;?>
    Which is the identifier for wqsf.

    Thread Starter creatile

    (@creatile)

    This also works for me
    Thanks

    Hi:
    I can’t resolve this. I need a different template for search results with this plugins, but when I use the code that you get:
    <?php if($_GET[‘s’] == ‘wqsf09be82574’ ) { ;?>
    The search results page don’t shows any result at all.
    Thanks

    Plugin Author TC.K

    (@wp_dummy)

    @kellyta_p, how you include your template?

    Hi:
    well, I try with put directly the code with conditional statement between <?php if($_GET['s'] == 'wqsf09be82574' ) { ;?> <?php }?>.
    Then, I try put the code in another template and make the call with “locate_template”, but nothing works, and the regular search works perfectly ??

    Plugin Author TC.K

    (@wp_dummy)

    I can’t really tell what is the problem. Have u include the template in the loop? Can you show your script here?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Display results on specific template’ is closed to new replies.