Forum Replies Created
-
AuthorPosts
-
memcan71
ParticipantI solved the problem with custom fields but I have problem with the letter “ı” in turkish. The keyword is “Kadın” and the search brings results if I write “kad” but if I add “ı” it says no results. I think this is a problem related to the character.
You had previously sent the following code but it does not help. I would appreciate your help.
add_filter(‘asp_indexing_string_pre_process’, ‘custom_chars_asp_indexing_string_pre_process’, 10, 1);
add_filter(‘asp_search_phrase_before_cleaning’, ‘custom_chars_asp_indexing_string_pre_process’, 10, 1);
add_filter(‘asp_query_args’, ‘custom_chars_asp_indexing_string_pre_process’, 10, 1);
function custom_chars_asp_indexing_string_pre_process($s) {
$original = array(
‘ı’, ‘ī’, ‘ʻ’, ‘ā’, ‘Ṭ’, ‘ṣ’, ‘ū’
);
$replace = array(
‘i’, ‘i’, ”, ‘a’, ‘t’, ‘s’, ‘u’
);// Replace them
if ( is_array($s) ) {
if ( isset($s[‘s’]) && !$s[‘_ajax_search’] )
$s[‘s’] = str_replace($original, $replace, $s[‘s’]);
} else {
$s = str_replace($original, $replace, $s);
}return $s;
}memcan71
ParticipantI think I found how to do it. Thanks for your time
memcan71
ParticipantI have installed advanced custom fields plugin but I am not sure how to add user meta fields. Can you let me know how should I add those meta fields?
memcan71
ParticipantSorry but it is not working. I have attached another ss. It is not user. It is just a page and menu item. The search doesn’t even find page contents.
memcan71
ParticipantOk I have change her name but still the same. If we cannot find a solution for this, can we do this?
I have attached each member to a membet type. For example two doctors to the gynecologs and so on. I have assigned Elif sari tp the member type Psychologists. In the english site, when I enter these terms, I mean the member types, the doctors associated to the category appear. But I dont have it in Turkish. How can I make sure that when a visitor types the category name, doctors in that category should appear in Turkish?
memcan71
ParticipantOk I understand that this does not find the strings below the name. what about the word in the user’s name? The user name is Psikolog Elif Sarı. It finds when I type only ps but when I add the letter i it says no results.
memcan71
ParticipantThaks for your help. Now search brings the Turkish results but still not as expected.
is SS11 I attached, when I write only “ps” it finds but when I add “i” it says no results as shown in ss22.
In ss33 I have added keywords into the bio of the doctor as you see “kadın” but when I search it, it says no result as in ss44
I appreciate your help.
memcan71
ParticipantI tested it but it is not working. Still when I type Turkish word “Psikolog” no results appear.
memcan71
ParticipantYou are looking to the wrong page. The info under that picture of the user is not given in search results. What appears in search results comes from the bio of the user that I have shown in the attached ss. I have already translated it as shown in the second ss but the turkish results are not shown. I hope that is clear enough
memcan71
ParticipantI have added almost all fields but still not working. I figure out that some Turkish translations for users are not found by the plugin. For example ı have attached a ss showing that in Turkish page, english details of the users are coming. how can I fix this?
memcan71
ParticipantI have added those fields but still no success for Turkish search
memcan71
ParticipantI am using Youzer plugin for member type.
memcan71
ParticipantYou cannot access this content.
memcan71
ParticipantI applied the snipped you have provided and it worked. Thanks a lot. How can I extend the list to include several other characters in different languages, let us say the ones in the German language?
memcan71
ParticipantWill I experience the same problem if I use WPML? If that fix the problem, I can purchase it.
-
AuthorPosts