re: I have some problems with the connections search widget that I add to sidebars. As soon as you type a letter it takes you off to another page when pressing enter!
A plugin or the theme is wrapping the search widget with a link to your site. So when you click on it, you are taken to that page. Here’s the page source:
<section id="cnw_search-3" class="widget widget_cnw_search"> <div class="widget-wrap"> <h4 class="widget-title widgettitle"> <a href="http://www.swissgiraffe.com/directory/travel/hotels/">Looking for something?</a></h4> <a href="http://www.swissgiraffe.com/directory/travel/hotels/"> <form role="search" method="get" action="http://www.swissgiraffe.com/"> <span class="cn-search"> <input type="text" id="cn-search-input" name="cn-s" value="" placeholder="Search"> <input type="submit" name="" id="cn-search-submit" class="cn-search-button" value="" tabindex="-1"> </span> </form> </a> </div> </section>
Both the widget title and the entire search form is being wrapped in a link that goes to this URL:
I have no idea what plugin or why the theme would do this. My suggestion is start deactivating plugins to find the one causing the trouble.
re: Second is that when you use the search on the page you were taken to, it pulls up WordPress Posts instead of Connection entries!?
Do you have your home page set as the directory home page? If you do, you can not do that because WordPress has issues properly detecting registered query vars in plugins and becomes “confused”, so it shows the blog archive page. I do have code that tries to fix this which is most instances, unfortunately not all.