Проблема: Клиент использует тему MyHome и плагин WPML для создания мультиязычного сайта и столкнулся с проблемой при попытке перевести названия полей формы поиска. Решение: Мы рекомендуем следующие шаги для решения проблемы: 1. Перейти в WPML >> Перевод Строк. 2. Активировать опцию "Искать строки во время рендеринга страниц". 3. Открыть страницу, где отображаются не переведенные поля. 4. Вернуться в WPML >> Перевод Строк и проверить, были ли зарегистрированы поля. 5. Сделать перевод. Дополнительно, ознакомьтесь с документацией по поиску и переводу строк, которые не отображаются на странице перевода строк: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/ Если проблема сохраняется, предоставьте нам скриншоты настроек перевода всех полей и созданной формы поиска. Также, предоставьте отладочную информацию с вашего сайта, следуя инструкциям по этой ссылке: http://wpml.org/faq/provide-debug-information-faster-support/
Если предложенное решение не актуально или не помогло, рекомендуем проверить известные проблемы, убедиться в актуальности версии исправления и установить последние версии тем и плагинов. В случае дальнейших вопросов, пожалуйста, откройте новый тикет поддержки.
You are developing a site using WP Job Manager and WPML and have encountered an issue where the application form in the job edit form displays in all languages instead of only the form of the current language.
Solution:
To resolve this issue, we recommend modifying the code to ensure the application form displays only in the current language. Please follow these steps after making a full site backup:
function get_application_forms() {
$posts = new WP_Query(
array(
'post_type' => 'job_application_form',
'posts_per_page' => - 1,
'suppress_filters' => false, // replace true with false
'orderby' => 'title',
'order' => 'ASC',
)
);
$default_form = WP_Job_Manager_Applications_Default_Form::get_default_form();
if ( $posts->post_count < 1 ) { // replace <= with <
return null;
}
$application_forms = [];
/* comment out this part if you don't want to see the default form in other languages
if ( array_key_exists( 'ID', $default_form ) ) {
$application_forms[ $default_form['ID'] ] = $default_form['post_title'];
}*/
foreach ( $posts->posts as $post ) {
$application_forms[ $post->ID ] = $post->post_title;
}
return apply_filters( 'job_application_forms', $application_forms );
}
If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please do not hesitate to open a new support ticket at WPML support forum.