I think results are displayed on search.php. How can I display the results on a specific template ?
I think results are displayed on search.php. How can I display the results on a specific template ?
I found a solution with conditional statement in my search.php template
<?php if ( $post->post_type == 'post' ) : ?>
<?php endif; ?>Glad you found the solution.
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.
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
@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 :(
I can't really tell what is the problem. Have u include the template in the loop? Can you show your script here?
You must log in to post.