VaLeXaR
Forum Replies Created
-
Try use this:
add_filter( 'wpcf7_special_mail_tags', function( $output, $name ) { if ( '_post_name' == $name ) { return wpm_translate_string( $output); } return $output; }, 11, 2 );
- This reply was modified 5 years, 4 months ago by VaLeXaR.
Did You set up these options in a menu screen settings tab? https://i.imgur.com/Ez6LYbx.png
Could You send some screenshot? I can’t understand where You saw this problem.
add_filter('wpm_flags_dir', function($dir) { return is_admin() ? $dir : get_template_directory_uri() . '/assets/images/'; });
Hi. You can change the flags URL using this code. As example with the code, flags will be loaded from a template directory.
Hi. You should to use css for align images.
Hi. I can not give an exact answer. I did never facing it before.
Hi. Some translators are translating archive slugs. In my mind this is wrong. You could change slug for needed language in localization file.
You can create several image fields for each language and display needed image depending on the language.
Hi. Post fields “post_title”, “post_content” and “post_excerpt” are translating by default. So You should just add post type name. Like:
"post_types": { "property": {} },
For translating the plugins settings You have to know where the plugin saves the settings.
Maybe You should to add some parameters to ‘options’ section in your ‘wpm-config’.Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] StripeYou have to add the widget options to your wpm-config for translating.
Sorry, but I do not know the name of your widget.
Did You try to use a single quotes?
Can You show dump for your widget? Maybe it does not have ‘content’ field.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Problems with ACFUse filter
wpm_acf_field_{$field_type}_config
for set translation config for field object. As example, add translating default text for text field:add_filter( 'wpm_acf_field_text_config', function ( $config ) { $config['default_value'] = array(); return $config; } );
Hi. You should to use filter for displaying post elements (‘the_title’, ‘the_content’) or translate post objects aplying ‘wpm_translate_post’ (
$queried_post = wpm_translate_post(get_post($post_id));
).