Skip Navigation

[Resolved] How to search string that "begins with"

This support ticket is created 4 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.

This topic contains 1 reply, has 1 voice.

Last updated by tisonK 4 years, 9 months ago.

Author
Posts
#1584331

Tell us what you are trying to do?
Search one of the fields using "begins with" rather than 'like'. So client wants to find all Addresses that begin with X (eg if they search 300, they want to see all addresses starting with 300, "300 main st, 300 south ave, etc" not 4300 main st.

Is there any documentation that you are following?
Can't find any on this.

Is there a similar example that we can see?

What is the link to your site?
hidden link

#1584355

All,

Thankfully this ticket from 5 years ago still works.

To do a 'begins with' search you have to patch the wpv_filter_query:

https://toolset.com/forums/topic/add-option-to-filter-based-on-a-string-that-starts-with-or-ends-with/