Archived topic
GP Element not showing on WPML translation
6 replies · Started by Kevin on July 11, 2019
Hi there.
I am using GP Elements to display a custom field via a hook. The custom field is styling as a red button.
See it here: https://healthystartkids.ca/the-connection-april-2016/
When you switch to the french version of that post (my site uses WPML) the element is not being displayed.
Can you help me understand why?
The funny thing is that on a custom post type, I do not have this issue. See here: https://healthystartkids.ca/tool/leap-hop-manual/
Here is the code in the element:
<?php if( get_field( 'progress_report_file_attachment' ) ): ?>
<p style="margin-top: 20px;">
<a>" target="_blank">
<strong><?php _e('Download','pods'); ?></strong> <?php the_title(); ?></a>
</p>
<?php endif; ?>
Hi there,
Has the Element been cloned/duplicated in the second language?
Yes and no.
This GP element: IS NOT translated / does NOT work:
https://healthystartkids.ca/the-connection-april-2016/
This GP element IS translated / does work:
https://healthystartkids.ca/september-2018/
This GP element: IS NOT translated / does work:
https://healthystartkids.ca/tool/leap-hop-manual/
The inconsistency in results is what's confusing me.
Thanks Tom.
And do all three Elements have cloned copies for all the languages?
I'm not overly familiar with WPML, so it might be worth checking with their support (they're awesome). They helped us integrate Elements with WPML so it should all work nicely.
Turned out being a logic problem. Sorry to bother you.
Glad you got it working :)