Người dùng này không có chủ đề yêu thích nào.
Chủ đề diễn đàn yêu thích
Chủ đề diễn đàn đã tạo
| Trạng thái |
Chủ đề
|
Người hỗ trợ | Ý kiến | Bài viết | Mới nhất |
|---|---|---|---|---|---|
|
hook wpml_active_languages
Được bắt đầu bởi: nielsS-9
trong: 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 months, 3 weeks trước | |
|
Custom post query
Được bắt đầu bởi: nielsS-9
trong: 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 | 4 months trước |