Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Filter and search box to use different sources
- This topic has 4 replies, 2 voices, and was last updated 5 years, 10 months ago by
Ernest Marcinko.
-
AuthorPosts
-
July 17, 2020 at 6:35 pm #28550
2phx03
ParticipantHello, basically I want main search box to use one source(locations) and categories and taxonomy terms to use posts source.
I can make both work separately, but I need one search button for both. So user can pick location and set filters, then click search button.
My website: https://dev.dubaiowner.com/
Wordpress example: https://homepress.stylemixthemes.com/?home=1
Custom: https://www.bayut.com/
Regards,
Igor.July 17, 2020 at 8:24 pm #285512phx03
ParticipantSorry one more thing to add, when I add locations as taxonomy term filter, in theory it should be my solution but I get error 500 internal server error. I have 6520 records in locations.
July 18, 2020 at 9:55 am #28558Ernest Marcinko
KeymasterHi,
If I see correctly, you are using Elementor posts widget to display the results – the properties are custom post types and the locations are taxonomy terms. And do you want to display locations as result? Or use them as a filter?
If you want to display as results, the problem with this is, that Elementor posts widget supports custom post types as results, but not taxonomy terms, so it won’t be able to display the locations, and that causes the error most likely.July 18, 2020 at 10:08 am #285602phx03
ParticipantHello, you see it correctly, except that post types are default wordpress posts, not custom. I added custom locations taxonomy via CPTUI. As you see in screenshot I have 2 searches from ajax search pro. One search is for locations, it works well, but it works well without additional filters like bedrooms, categories(sale/rent), type(apartment,villa). Because additional filters take posts as source and location search is taking location taxonomy as source.
So what I want to do is to unite search and filters into one item. Where main search box is looking for locations from source(locations) and additional filters below for bedrooms, category and etc are taking posts as source.
July 20, 2020 at 8:36 am #28572Ernest Marcinko
KeymasterHi,
This is not possible. Because the search would have to force the results to the elementor container – however that widget does not support taxonomy terms as results, so it may only cause an error, or not show the taxonomy terms at all. Because of that, you will need two separate search bars.
-
AuthorPosts
- You must be logged in to reply to this topic.