Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Ajax Search Pro for WordPress need help for our real estate website
- This topic has 20 replies, 2 voices, and was last updated 2 years, 9 months ago by
Ernest Marcinko.
-
AuthorPosts
-
July 21, 2023 at 11:06 am #44773
Kinjal
ParticipantWe have purchase ajax search pro plugin from envato and integrated on website, but i wanted to know that can we use search form as tabs with 2 different search form
For example. we have 2 options Rent and Sell. if someone click on rent, rent search options should open or display and likewise for sell… please help us on the same. this is the main functionality of website as it is real estate website.July 24, 2023 at 9:54 am #44784Ernest Marcinko
KeymasterHi,
Sure!
Usually themes or theme builders have “tab” or similar builder elements. You could create two search bars and configure them so that the first one shows only the “for rent” and the other one shows the “for buy” items. Then add these search shortcodes to the tab feature of your theme or theme builder.
Depending on how the rent/buy items are marked, you can use results exclusions or inclusions to only allow resulst for the real estate types.
July 31, 2023 at 11:11 am #44874Kinjal
ParticipantHello,
I have setup the search option in home page -https://ghar.b-d.studio/
but when we click on search, results are coming as blog template i wanted to change block design as below link – https://ghar.b-d.studio/advanced-search/I have tried to create another page and setup but it’s coming blank on results page. please help me how can i show results in such designs with proper results?
Thanks and Regards
Kinjal Jethva-
This reply was modified 2 years, 10 months ago by
Kinjal.
July 31, 2023 at 1:38 pm #44881Ernest Marcinko
KeymasterHi Kinjal,
The layout of the results page is up to the page itself. The plugin redirects to the results page, but how that looks depends on the theme. The advanced search page seems to be a custom built template of some sort. Check the theme settings, there is probably a way to change the results page layout as well.
July 31, 2023 at 2:04 pm #44882Kinjal
ParticipantHello,
But in the search plugin there is option to add custom URL right?, we have created another page as result page and then we click on search it shows blank page. No results shows up.
July 31, 2023 at 2:12 pm #44884Ernest Marcinko
KeymasterYes – but that does not mean WordPress will convert that page to a results page. WordPress has it’s “results page archive” handler, and it is triggered whenever the “?s=” query argument is triggered by default. That automatically calls the proper theme layout file and prints whatever is in the results loop. A custom page is only a custom page, it will not become the results page, WordPress will not recognize that. The best way to get around it is to simply make changes to the actual results page template.
August 5, 2023 at 11:15 am #44937Kinjal
ParticipantHello,
I have setup search by developer in my website but if i am searching by developer it’s not working can you please check?
August 7, 2023 at 10:14 am #44945Ernest Marcinko
KeymasterSure!
The property_agent field seems to be a reference field to developer posts, so I have added a custom code snippet to transform the values to the developer post titles for the index (the code is in the child theme functions.php):
add_filter( 'asp_post_custom_field_before_tokenize', 'asp_change_cf_index', 10, 3 ); function asp_change_cf_index( $values, $post, $field ) { if ( $field == 'property_agent' ) { $id = get_post_meta( $post->ID, 'property_agent', true); if ( !is_wp_error($id) ) { $values = array( get_the_title( $id ) ); } } return $values; }Now searching by developer should very likely return results for the properties.
August 7, 2023 at 12:53 pm #44946Kinjal
ParticipantHello,
Thanks it’s done.
But in home page search form rent search bar is automatic disabled can you tell me how this happened?
August 7, 2023 at 4:09 pm #44955Ernest Marcinko
KeymasterYou are welcome!
It is not disabled, but the font may have been changed to a white color, please check it here: https://i.imgur.com/4d7G4ju.png
August 9, 2023 at 7:21 am #44993Kinjal
ParticipantOkay thank you for your help,
I need 1 more help that is i wanted to add property pricing in dropdown and if i am adding as dropdown it’s not looking good as it shows only numbers there is no option to add currency symbol or CR and anything to add as per my pricing details. Client doesn’t like range slider. how can i setup dropdown in proper way.
August 9, 2023 at 10:30 pm #45022Ernest Marcinko
KeymasterSure!
The drop-downs are designed for text inputs, but you can probably get around it by manually entering the values with the formatting like so:
||Select** 1000||$1,000 10000||$10,000 100000||$100,000August 10, 2023 at 7:23 am #45023Kinjal
ParticipantNoted,
But can we put values like
₹ 7500000 – ₹10000000
₹15000000 – ₹20000000Like this in dropdown?
August 10, 2023 at 9:20 am #45027Kinjal
ParticipantAnd If i am adding price 1cr or below 1 cr search shows no result but in the properties i have added properties with 75 lakh . please check.
August 10, 2023 at 2:55 pm #45039Ernest Marcinko
KeymasterRange values will not work that way, dropdowns are comparing for ranges, but for individual values. For that you should try creating two separate drop-downs, one for the “from” and the other for the “to” price, and set numeric operators.
There is also a “number range” filter type, which allows inputting only numeric values: https://i.imgur.com/qNfThgd.png
-
This reply was modified 2 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.