@ Greg
Apologies! I somehow did miss this.
I’ve read the thread over in the WPML support forum…
I guess the first thing that needs to be clarified is that Connections is not a custom post type (CPT). Connections uses custom database tables instead for a couple reasons. One, Connections is older than the WP CPT feature. Two, and more importantly, the db schema of the custom tables are more optimized for directories whereas CPT’s are optimized for post content. This allows me to do things which are difficult is not possible if I were to use a CPT. This is very likely you are not seeing what you need to see in WPML.
Looking at the WPML developer docs, it seems, I think I would have to add specific support in the code for WPML support for user input as outline in their docs.
I could not find anything in their dev docs specifically outlining the procedure to add WPML support to plugins which use custom tables and with user input. I’m not able to ask questions in their support forum since I’m not a customer. If you could relay this question to them asking them to point me to the relevant docs. I can at least add initial support for the job title field.
If this will help them, the code to get and set the job title can be found in these two links:
- https://github.com/Connections-Business-Directory/Connections/blob/8.5.22/includes/entry/class.entry-data.php#L327
- https://github.com/Connections-Business-Directory/Connections/blob/8.5.22/includes/entry/class.entry-data.php#L1009
- https://github.com/Connections-Business-Directory/Connections/blob/8.5.22/includes/entry/class.entry-data.php#L1025
The actual data is retrieved and saved from the db using the WordPress wpdb API.
I hope this helps move this issue forward to resolution. Let me know what you find out.
