When a user submits this form, it takes them to the default 'search.php' page to show the results (I have another search form on my site that uses the same page). However, I want a few things to either not appear or display differently if a user gets to my search page after using the CPT form. I know that I can create a custom search page to show the results of my CPT search but it may be a bit of overkill as I pretty much want the same page as search.php with just a few minor alterations.
<form id="searchform" action="<?php bloginfo('url'); ?>/" method="get"> <input class="inlineSearch" type="text" name="s" value="Search" /> <input type="hidden" name="post_type" value="my_post_type" /> <input id="searchsubmit" type="submit" value="Search" /> </form>
|Any Third party toll for Integrating chat system on ASP.NET ?||2||34|
|Office 365 Pass Username an Password in URL||3||32|
|Could you point a way to form a view's combo based on Codeigniter's results?||4||16|
|Checking if varaible is empty||6||21|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
20 Experts available now in Live!