이 사용자는 즐겨찾는 주제가 없습니다.
즐겨찾는 포럼 주제
포럼 주제가 생성되었습니다.
상태 |
주제
|
서포터 | 목소리 | 게시물 | 선도 |
---|---|---|---|---|---|
WP Query post from one language on another
시작한 사람: jackc-12
안에: English Support
Problem: wpml_switch_language function within a filter to list posts from the default language on a page translated to another language, and can't get the wpml_switch_language to work. Solution: wpml_switch_language action hook must be used with the pre_get_posts WordPress hook. This means that you should integrate the language switch into the query modification process. Here's how you can do it: 1. Use the pre_get_posts hook to modify the query before it runs. do_action('wpml_switch_language', 'all') to switch the language. For more details and usage examples, you can refer to the following documentation: Additionally, there are alternative approaches you can consider, such as: |
|
2 | 2 | 1 년, 7 월 전에 | |
Homepage translations not in sitemap
시작한 사람: jackc-12 안에: English Support |
|
2 | 2 | 1 년, 8 월 전에 | |
Migrating from Polylan
시작한 사람: jackc-12 안에: English Support |
2 | 2 | 1 년, 9 월 전에 |