Title: Search
Last modified: October 9, 2019

---

# Search

 *  Resolved [blumbreras](https://wordpress.org/support/users/blumbreras/)
 * (@blumbreras)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/search-126/)
 * Hi,
 * I want to have page that shows the filter on the top and after that, inicially,
   all the items and after the search, the selected items below the filter.
    I have
   use this:
 * [gd_search]
    [gd_loop_actions] [gd_loop layout=2] [gd_loop_paging]
 * But it is not showing anything the fist time you enter.
 * How can I do it?
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * (@stiofansisland)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/search-126/#post-12013784)
 * Hi [@blumbreras](https://wordpress.org/support/users/blumbreras/),
 * We don’t currently have an option to show results without actually doing a search.
 * You could setup the locations page the way you want and then when a user searches
   it will direct them there and show results.
 * If you have the skills you can use this code snippet to achieve what you want.
   
   You can add this to your theme functions.php or via the plugin “code snippets”.
 *     ```
       add_action('parse_request','_my_gd_search_page_fix',0);
       function _my_gd_search_page_fix(){
       	if(geodir_is_page('search') && !isset($_REQUEST['geodir_search'])){
       		$_REQUEST['geodir_search'] = 1;
       		$_REQUEST['stype'] = 'gd_place'; // set the post type here
       	}
       }
       ```
   
 * Thanks,
 * Stiofan
 *  Thread Starter [blumbreras](https://wordpress.org/support/users/blumbreras/)
 * (@blumbreras)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/search-126/#post-12032720)
 * Hi Stiofan,
 * I have use this code and it works when I enter into my page for the first time
   and if I do a search by some words, but if I insert another place, it does not
   work, it always show the same places related to the fixed place…how can I solve
   this?
 * Thanks!
 *  Plugin Support [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * (@alexrollin)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/search-126/#post-12033177)
 * Hello,
 * we’d love to help you use GeoDirectory, if you could please visit our forum where
   our team can provide additional support.
 * Please see: [https://wordpress.org/support/topic/read-this-before-posting-for-support-free-premium/](https://wordpress.org/support/topic/read-this-before-posting-for-support-free-premium/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Search’ is closed to new replies.

 * ![](https://ps.w.org/geodirectory/assets/icon-256x256.jpg?rev=2778361)
 * [GeoDirectory - WP Business Directory Plugin and Classified Listings Directory](https://wordpress.org/plugins/geodirectory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geodirectory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geodirectory/)
 * [Active Topics](https://wordpress.org/support/plugin/geodirectory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geodirectory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geodirectory/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/search-126/#post-12033177)
 * Status: resolved