This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing issues where posts created with the
wp_insert_post
function are not visible in the WordPress dashboard, although they exist in the
wp_posts
database table. This is due to missing relations in the
wp_icl_translations
table, which they have temporarily fixed using WPML's fixing functions.
Solution:
We recommend using WPML's filters and action hooks to ensure proper multilingual support when performing custom coding. Here are some resources that might help:
- WPML Coding API
- WPML Hooks Reference
- WPML Shortcodes
- How to get current language with WPML
- WPML Tables
- WooCommerce Multilingual Hooks Reference
- WPML Support Documentation
If custom work is needed beyond the provided documentation, we suggest contacting WPML Contractors at WPML Contractors.
If this solution doesn't look relevant, please open a new support ticket at WPML Support Forum.
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 1 reply, has 2 voices.
Last updated by 1 year, 10 months ago.
Assisted by: Waqas Bin Hasan.