У этого пользователя нет избранных тем.
Избранные темы форума
Созданные темы форума
Статус |
Тема
|
Специалист поддержки | Голоса | Сообщения | Свежесть |
---|---|---|---|---|---|
hook wpml_active_languages
Начато: nielsS-9
в: English Support
Problem: wpml_active_languages filter to input a custom language switch. However, on the singular page of the custom post type, this filter returns an empty array, preventing the display of the language switch, although the page displays in the correct language when linked from a normal page. If this solution does not apply to your case, or if it 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 issues persist, please open a new support ticket. |
|
1 | 8 | 3 месяца назад | |
Custom post query
Начато: nielsS-9
в: English Support
Problem: 'lang' => 'all' in WP_Query parameters without success. The issue is that when performing a WP_Query for the custom post type, only records in the default language are shown, filtering out records in other languages. suppress_filters argument in your query. Here's how you can modify your WP_Query: suppress_filters = true to fetch posts from all languages. suppress_filters = false to get posts only in the currently viewed language. Please note that this solution might be outdated or not applicable to your specific case. 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 issue persists, please open a new support ticket at our support forum. |
|
0 | 2 | 3 месяца, 1 неделя назад |