Skip Navigation

[Resolved] This is an extended thread of prob associated with custom search filter mentioned previously

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 9 replies, has 2 voices.

Last updated by chong-sumw 5 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1260641

I opened this tread and replied the following msg because I can't choose you as the supporter when I create a new ticket about this prob. Therefore please help me separate this as new ticket and hide the confidential link. thanks!

This is an extended thread of prob associated with custom search filter mentioned previously in https://toolset.com/forums/topic/elementor-dynamic-field-cannot-show-0-value-from-custom-field/ and https://toolset.com/forums/topic/the-custom-search-form-is-not-working-as-expected/#post-1260247

I have a custom search filter working fine except one of its filter which has only 3 options for user to choose. When one option is checked, no filtering action is done, thus all the results are shown. I have checked the custom query field and it's fine.

Thank you again for your help Luo

#1260669

Hello,

Thanks for the details, I am downloading the new duplicator package files, will update here if there is anything found.

#1260675
quanzhi.JPG

I can install the new duplicator package in my localhost, but there isn't the problem as you mentioned above:
no filtering action is done
See screenshot: quanzhi.JPG, when search with option "全職", I can see only three results.

So it might be a server problem, please backup your website, and provide your website credentials + FTP access in below private message box, I need to test and debug it in a live website. thanks

#1260803

Thanks for the details, checking it in your website, will update here if there is anything found.

#1260943

Here are what I found, in the problem page:
hidden link
The custom search form is from post view "Business Archive with expand filter view":
hidden link

But the search result is from another post view: "Business Homepage Search Archive View"
hidden link

It conducts the problem you mentioned above.

I have tested it in your website, edit the problem page with elementor editor:
hidden link
click the search form element, and in the option "What do you want to include here", choose "Both the search form and results".

Test it in front-end:
hidden link

It works fine, you can remove the "search result" element from post view "Business Homepage Search Archive View" in that page.

#1261529
Screen Shot 2019-06-07 at 2.43.48 AM.png

Thank you so much for finding the issue!

However, now I need to style the search form and result separately in order to re-create the previous appearance. But the result form seems to be inside the search form. I don't know how to remove the "white extension" from the search form. please see the screen shot. i created a div with class in the loop edition, then added a background attribute to the class.

	<div class="result-form row">

Also I search from the forum, it said that the search form and result form could be displayed separately so I dun understand why it couldn't work in my case. for example, when I create toolset view in Elementor and display the "result form" only from the search form on the same page option, it displays nothing.

#1261777

Since you are using custom HTML DIV tags in the post view:
hidden link

There might be some broken DIV tags in your custom HTML codes, I have done below modification in your website:
Edit above post view, in section "Search and Pagination", line 67, add a line in it:

</div>

Please test it again, check if it is fixed.

#1261787
broken html.png

The style prob is fixed. thank you so much luo. I deleted the </div> some time ago because the html editor showed it as red color, therefore I thought it was redundant. I will add a comment to remind myself not to delete it again. Also the tag has to be moved after the [wpv-filter-end] tag (line 69), otherwise the html will be broken (see attached screen shot)

I was checking if the filter works probably. Sadly, something else seems to be broken which used to be working.

Filters with problems:
投資預算(field="wpcf-selling-price"), 利潤(field="wpcf-profit"), 面積(wpcf-store-size-sqft).

What problem:
the filters cannot correctly filter according to its value.

for example, when you choose the default option (which should return all results), it would only show 6 posts (out of 7), skipped the one with same value as others (selling price 280000).

then you choose selling price below $250,000, the form shows 6 posts too. there is only one post with selling price below $250,000 which is $150,000. it seems to me that the filter form behaves as if it shows results greater than the lower bound of the filter option. for example, for filter option of value 1-250,000 it shows posts with value greater than 1 instead of between 1 and 250,000.

To achieve the above range filter function, a custom code snippet has been added in toolset setting. please refer to the following link
https://toolset.com/forums/topic/custom-search-filter-price-range-dropdown/

Again, many thanks for your help.

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/something-else-seems-to-be-broken-which-used-to-be-working/

#1261819

Thanks for sharing the solutions, I assume the original question of this thread is resolved, for the new question:
something else seems to be broken which used to be working
please check the new thread here:
https://toolset.com/forums/topic/something-else-seems-to-be-broken-which-used-to-be-working/

#1261821

Okay, I will close this thread then. thank you so much.