Hello !
I use Polylang on my websites, and Site Origin to handle content page.
Recently, I’ve noticed that I have a problem when I create a new translation for a page builded with Site Origin : widgets aren’t loaded in the content admin page. It was working before, so I guessed that something have been changed in latest versions of the siteoriginbuilder plugin, and I’ve found what cause my problem : it’s the new feature “WPML: Improved compatibility by excluding panels_data“.
For the context, when I create a new translation, I have a function that copy the content page of the original post that you can see here :
function traduction_content_copy( $content ) { if ( isset( $_GET['from_post'] ) ) { $my_post = get_post( $_GET['from_post'] ); if ( $my_post ) return $my_post->post_content; } return $content; } add_filter( 'default_content', 'traduction_content_copy' );
The addition of this line in the “wpml-config.xml” file is the origin of the problem :
<custom-fields> <custom-field action="ignore">panels_data</custom-field> </custom-fields>
I don’t really know why, so I hope you could find a solution for polylang to not be concerned by this line.
Thank you for your support !
The post 2.31.3 Feature “WPML: Improved compatibility by excluding panels_data” cause problem appeared first on SiteOrigin.