GeoDirectory SupportSearch blog dropdown – GeoDirectory Support https://wpgeodirectory.com/support/topic/search-blog-dropdown/feed Sat, 14 Feb 2026 03:49:00 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31381 <![CDATA[Search blog dropdown]]> https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31381 Thu, 19 Feb 2015 13:12:45 +0000 BL Interactive I have the search field at the top of every page, now the dropdowns are places and events. Is it possible to add a 3rd option that is everything and that pushed the search request to the default search so my visitors can search articles from the same form?

places > places search results
events > events search results
everything > standard search results

I am using advanced search if that helps/hurts things.

]]>
https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31391 <![CDATA[Reply To: Search blog dropdown]]> https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31391 Thu, 19 Feb 2015 13:52:03 +0000 Guust That would be very tricky if possible at all.
Why not add GD Search widget and normal WP Search widget and title them:
“Search listings” or “Search whole site”.

]]>
https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31404 <![CDATA[Reply To: Search blog dropdown]]> https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31404 Thu, 19 Feb 2015 14:24:30 +0000 BL Interactive Having multiple search boxes is bad UX.

it just need to pass the field to URL?s=searchterm

I love when someone says just need to when they have no idea.

]]>
https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31489 <![CDATA[Reply To: Search blog dropdown]]> https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31489 Thu, 19 Feb 2015 23:56:19 +0000 Guust Misread your question, I thought you want to search everything at the same time, which you can do with WP search, but it will not return the results of GD listings in the GD search page.
I guess it might be possible to add an extra option by copying the widget and adding your own code.
I’ll alert the others to your question too.

]]>
https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31555 <![CDATA[Reply To: Search blog dropdown]]> https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31555 Fri, 20 Feb 2015 19:02:27 +0000 Paolo Hi,

I’ve looked into your request and stopped after 5 minutes because it would require to rewrite part of the GD search widget and also modify part of the advance search widget addon. Not even sure it can all be done only via hooks. Only Stiofan could tell us more about it…

I think there is a much simpler option that you should consider and that integrates Guust’s suggestion.

Instead of using 2 forms on the page that I agree would be bad UX, you could show only the form needed and add the selection Listings/Everywhere elsewhere.

Example: http://wpgeo.directory/

added a text widget above the gd search widget.
added 2 links “Listings” “Everywhere”.
added the regular search below the gd search widget and hidden with css.
added few lines of JS to show/hide one or the other
added little css for regular form to start look like listings form and give you the idea.

html for links in text widget:


<div class="alternative-search"><a id="gd-listings" href="#">Listings</a>
<a id="everything" href="#">Everything</a></div>

css:


.widget_search .screen-reader-text {
    display: none;
}
#s {
    float: left;
    margin: 0 10px 0 0;
    background-color: #fff;
}
.widget .searchform {
    margin: 10px auto;
    width: 33%;
}
.widget_search {
    display: none;
}

jQuery:


<script type="text/javascript">
jQuery(document).ready(function(){
    jQuery("#gd-listings").click(function(){
        jQuery(".widget_search").hide();
        jQuery(".geodir_advance_search_widget").show();
return false;
    });
    jQuery("#everything").click(function(){
jQuery(".widget_search").show();
        jQuery(".geodir_advance_search_widget").hide();
return false;
    });
});
</script>

If you like the idea, this can be accomplished with another 15 minutes of css and it took me 10 minutes from start to end.

Achieving the same modifying the code would take so much longer that I wouldn’t even consider it.

Let us know,

Thx

]]>
https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31560 <![CDATA[Reply To: Search blog dropdown]]> https://wpgeodirectory.com/support/topic/search-blog-dropdown/#post-31560 Fri, 20 Feb 2015 21:04:52 +0000 BL Interactive Thanks for looking into this.

Funny I was dabbling with something similar. Trick is, I am using the search shortcode to integrate with some of my non GD pages.

]]>