Skip Navigation

[Resolved] custom search is ignoring input

This thread is resolved. Here is a description of the problem and solution.

Problem:
View's filter is not working properly and does not have effect on output

Solution:
Please make sure that your filters should be added between [wpv-filter-controls] ---- [/wpv-filter-controls] shortcodes.

You can find proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/custom-search-is-ignoring-input/#post-628762

Relevant Documentation:

This support ticket is created 6 years, 9 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by markj-10 6 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#627905

I am trying to: have a search work

Link to a page where the issue can be seen:
hidden link
name:test password:testing1! OR! password:Testing1! (can't remember)
I expected to see: rooms disappear when I selected a box and hit submit

Instead, I got: all projects return, regardless.. no filtering is taking place

#628165

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - Could you please tell me which checkbox I should select and what is your expected output?

Also, could you please send me screenshot of your edit view page?

#628458
diffs101013.png

What I expected different that existing behavior- when I select the first option 'queen' I expect the elements that do not match to disappear.

This worked fine on a query I built with your tools for 'categories' but upon adding my first custom group, it finds the data to list as options, but does not filter the non-matches away when I make a selection..

Know that it worked great, for project 'catgeories' but as I need mutli-select (why I bought toolset)
so I built my first group of second level (which had a name, but for clarity in testing I made XXX)

I also made you a log in

hidden link
test & Testing1!

pages are under 'projects'
101 and 103 are the first two with distinct data

see XXX under custom fields. in the picture when you go to the test page,

#628762

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - the issue was - you've added the custom field filter outside the [wpv-filter-start hide="false"] shortcode.

I've adjusted your filter section as given under - Please make sure that your filters should be added between [wpv-filter-controls] ---- [/wpv-filter-controls] shortcodes:


[wpv-filter-start hide="false"]
[wpv-filter-controls]

<div class="form-group">
	<label>[wpml-string context="wpv-views"]XXX[/wpml-string]</label>
	[wpv-control-postmeta field="XXX" type="checkboxes" url_param="wpv-xxx"]
</div>
[wpv-filter-submit output="bootstrap"]

[/wpv-filter-controls]
[wpv-filter-end] 

Also, I've added the query filter for your custom field to view's query filter section. You can check your view here:
=> hidden link

I can see now its working fine.

#628864

Killer, thank you, thought I filled it only by clicking the pre-build buttons.

-- a suggestion? to keep it 'programming free'?

for each of the builder boxes on the view tabs, how about a "RESET" for that box only.
i.e. one for filter editor, one for loop output editor....

filter editor, boxes for

new filter | edit filter | text search| submit button| spinner | Close| show bootstrap| insert | &*RESET*