Skip Navigation

Resolved

Overview of the issue

When you create a new post or edit an existing one, the WPML language tab content disappears from the right sidebar and displays only a 0.

Workaround

Please back up your website before proceeding with the following workaround:

  1. Open the wp-content/themes/realhomes/framework/functions/design-variations-handler.php file
  2. Replace the following snippet:
    $wpml_current_lang = apply_filters( 'wpml_current_language', null );
    if ( $wpml_current_lang ) {
       $ajax_url = add_query_arg( 'wpml_lang', $wpml_current_lang, $ajax_url );
    }
    

    With this:

    $wpml_current_lang = apply_filters( 'wpml_current_language', null );
    if ( $wpml_current_lang && ! is_admin() ) {
    	$ajax_url = add_query_arg( 'wpml_lang', $wpml_current_lang, $ajax_url );
    }
    

2 ردود إلى “RealHomes Theme - When saving a post, you get "0" in the language tab”