berniezhao
Forum Replies Created
-
AuthorPosts
-
Yes that would be great Stiofan!
Thanks!I checked the source code in
listing_filters.php
Line 725
$better_search[] = " OR ( $wpdb->posts.post_title LIKE "$s_term" OR $wpdb->posts.post_title LIKE "$s_term%" OR $wpdb->posts.post_title LIKE "% $s_term%" ) ";
Line 754
$better_search_terms .= ' OR ( ' . $wpdb->posts . '.post_title LIKE "' . $keyword . '" OR ' . $wpdb->posts . '.post_title LIKE "' . $keyword . '%" OR ' . $wpdb->posts . '.post_title LIKE "% ' . $keyword . '%" )';
Both places added a “space” after “%”. If I remove the space and make it same as advanced search autocomplete, then everything works fine.
If this is by design can we at least make it a configuration?
Great thanks!Just to add a note:
The auto-complete in advanced search plugin actually works great. It can search my terms ok. Are they using different logic than the main searching?
Thanks!Thanks Paolo.
That would be a problem for some languages that don’t have white spaces(like Asian). Because every character is actually a “word” and they are not separated by white spaces, the searching basically is useless this way.
Can you tell me which php file has this feature maybe I can patch it myself until you have a solution?
Thanks!This reply has been marked as private.Thanks @paolo!
I kinda know maybe I need to manually add them into scan result. But usually I don’t have a lot of CPT, so that’s not a problem for now.
Looking forward the the next release.
Keep up the good work! 😉But in your case “testing-fr” is still the slug in the URL right? If you create a new listing, the posting type drop down list still says “Place” “Event” and “Testing” instead of French.
Is there any work around? I’m also interested in implementing County level in USA.
I would even trade City with County if I must choose one…
Thanks.@paolo, thanks for the instruction. I followed the instruction and was able to translate the slugs but still not the “Name” of the CPT.
In my case, I have “gd_place” and “gd_provider”. I can translate the “provider” to anything I want INSIDE the URL. However, when display on the page (for example when you create a listing, you can choose posting type), it still shows as “Provider”.
Any help is appreciated!
@paolo, I installed WPML. I can translate posts but I still couldn’t find the option translate post type name.
Say I added one custom post type now I have two post types “place” and “provider”. I know the word “place” is the po file, but how do I translate the word “provider”?
Thanks.Thank you @stiofan!
Yes mb_convert_case() should be good. Thanks! Let us know.
-
AuthorPosts