This thread is resolved. Here is a description of the problem and solution.
Problem:
tax_query in WP_Query does not display results
Solution:
From the provided query, the client was using post_id on the query, we recommend to use the wpml_object_id hook to get the ids properly while using WPML
Relevant Documentation:
- Find more details on the usage of WP_query in WordPress.
- Read how to get the ID in the current language or in another language you specify
- Read how to use the “id” argument for the “field” parameter.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 5 replies, has 2 voices.
Last updated by Kim Gamez 4 years, 11 months ago.
Assisted by: Shekhar Bhandari.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.