This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
| Status |
Topic
|
Supporter | Voices | Posts | Freshness |
|---|---|---|---|---|---|
|
label values in an ACF
1
2
Started by: georginac
in: English Support
Problem: Next, to address the search functionality across different languages, modify how you retrieve the post ID in your search query. Use the wpml_object_id hook to get the correct ID for each language. Here's how you can apply it:
$wpml_language_code = apply_filters('wpml_current_language', null);
$reference_id = apply_filters('wpml_object_id', $reference_id, 'post', false, $wpml_language_code);
Please note that our support team generally does not debug custom code extensively. If these steps do not resolve your issue, or if the solution becomes outdated, we 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 open a new support ticket at WPML support forum. |
|
3 | 24 | 1 year, 8 months ago |