이 사용자는 즐겨찾는 주제가 없습니다.
즐겨찾는 포럼 주제
포럼 주제가 생성되었습니다.
상태 |
주제
|
서포터 | 목소리 | 게시물 | 선도 |
---|---|---|---|---|---|
SearchWP and WPML
시작한 사람: Devops Takeoff
안에: English Support
Problem: // Ensure you have WPML's language set up $current_language = apply_filters('wpml_current_language', null); // Arguments for the query $args = array( 'post_type' => $post_type, 'posts_per_page' => $posts_per_page, 'post_status' => 'publish', 'orderby' => $params['orderby'] ?? 'date', 'order' => $params['order'] ?? 'DESC', 's' => $params['search'], 'paged' => $paged, 'suppress_filters' => false, // This ensures WPML filters are applied ); // Run the query $query = new WP_Query($args); // Use the results as needed if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); // Your loop content } wp_reset_postdata(); } If this solution does not resolve your issue or seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If further assistance is needed, we highly recommend opening a new support ticket at WPML support forum. |
|
0 | 2 | 2 월, 2 주 전에 |