Media Grid Visual composer
-
The media grid in visual composter doenst load in english language.
it apperas in default language. what can be the problem?Best Regards!
-
jquery.js?ver=1.12.4:2 Uncaught Error: Syntax error, unrecognized expression: {“status”:”Nothing found”}
at Function.fa.error (jquery.js?ver=1.12.4:2)
at fa.tokenize (jquery.js?ver=1.12.4:2)
at fa.select (jquery.js?ver=1.12.4:2)
at Function.fa (jquery.js?ver=1.12.4:2)
at Function.a.find (jquery-migrate.min.js?ver=1.4.1:2)
at n.fn.init.find (jquery.js?ver=1.12.4:2)
at n.fn.init.a.fn.find (jquery-migrate.min.js?ver=1.4.1:2)
at a.fn.init.n.fn.init (jquery.js?ver=1.12.4:2)
at a.fn.init (jquery-migrate.min.js?ver=1.4.1:2)
at n (jquery.js?ver=1.12.4:2)Hi!
Please try to add the following code snippet to functions.php of your theme:
if ( ! function_exists( 'mltlngg_filter_composer_settings' ) ) { function mltlngg_filter_composer_settings( $settings, $post_id, $post ) { global $wpdb; $grid = new Vc_Hooks_Vc_Grid(); $post_data = $wpdb->get_results( "SELECT <code>post_content</code> FROM <code>{$wpdb->posts}</code> WHERE <code>ID</code>={$post_id} UNION SELECT <code>post_content</code> FROM <code>{$wpdb->prefix}mltlngg_translate</code> WHERE <code>post_ID</code>={$post_id};" ); if ( empty( $post_data ) ) return $settings; $all_settings = array( 'vc_grid_id' => array( 'shortcodes' => array() ) ); foreach( (array)$post_data as $data ) { $data->post_content = stripslashes( $data->post_content ); $lang_settings = $grid->gridSavePostSettingsId( $settings, $post_id, $data ); if ( empty( $lang_settings['vc_grid_id']['shortcodes'] ) ) continue; $all_settings['vc_grid_id']['shortcodes'] = array_merge( $all_settings['vc_grid_id']['shortcodes'], $lang_settings['vc_grid_id']['shortcodes'] ); } if ( empty( $all_settings['vc_grid_id']['shortcodes'] ) ) return $settings; if ( empty( $settings['vc_grid_id']['shortcodes'] ) ) $settings['vc_grid_id']['shortcodes'] = $all_settings['vc_grid_id']['shortcodes']; else $settings['vc_grid_id']['shortcodes'] = array_merge( $all_settings['vc_grid_id']['shortcodes'], $settings['vc_grid_id']['shortcodes'] ); return $settings; } add_filter( 'vc_hooks_vc_post_settings', 'mltlngg_filter_composer_settings', 11, 3 ); }Get this error. the default language works.
Uncaught Error: Syntax error, unrecognized expression: {“status”:”Nothing found”}
at Function.fa.error (jquery.js?ver=1.12.4:2)
at fa.tokenize (jquery.js?ver=1.12.4:2)
at fa.select (jquery.js?ver=1.12.4:2)
at Function.fa (jquery.js?ver=1.12.4:2)
at Function.a.find (jquery-migrate.min.js?ver=1.4.1:2)
at n.fn.init.find (jquery.js?ver=1.12.4:2)
at n.fn.init.a.fn.find (jquery-migrate.min.js?ver=1.4.1:2)
at a.fn.init.n.fn.init (jquery.js?ver=1.12.4:2)
at a.fn.init (jquery-migrate.min.js?ver=1.4.1:2)
at n (jquery.js?ver=1.12.4:2)Hi,
Please contact us via our Help Center – https://support.bestwebsoft.com/ and include the link to this thread because WordPress editor replaces grave accent with < code > tag.
-
This reply was modified 8 years, 10 months ago by
bestwebsoft.
-
This reply was modified 8 years, 10 months ago by
The topic ‘Media Grid Visual composer’ is closed to new replies.