I'm trying to search through WP_Query in wordpress, in custom post types. I have this request
$wp_query = Wp_Query(['post_type' => 'property', 's' => 'test']);
This works perfect. but when my property has title with apostrophe like
test's, it doesnt work, after enter into search page in my search attribute I got
test\'s, and when I try to find posts by this attribute that doesnt work, also when I hardcode change search string without backslash.
Any ideas how to solve this? With some custom filter or something like that? Something about more complex search with WP_Query.