separate search function
-
Hi,
I am trying to have a separate search function for the two search bars on this page.
For the search bar on the top, I want to keep it working as it is to search for products.
For the search bar on the right hand side, I want this to search for “posts” only, to only display blog posts in the results. I had a developer that input the codes to have this separate function, but it has stopped working, and no results are returning for this search bar.in contents.php, I found the following codes:
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
I’m not sure if this is relevant to defining this search bar.Can anyone please give me some advise on how to fix the right hand search bar to only display blog posts?
Thank you very much.
The page I need help with: [log in to see the link]
The topic ‘separate search function’ is closed to new replies.