VaLeXaR
Forum Replies Created
-
@anticosti
Then create.Can You show screenshot with html code of language menu item?
I created Slack group https://wpmultilang.slack.com/. You can ask questions there.
@anticosti
1. The code You need write semself.
2. If You add lang switcher in admin, everything has to work.
Provide access to the site and ftp.Do you have flags in your html code? http://prntscr.com/gw85qo
Maybe, images hidden in css?Hi @anticosti.
1. You need add js code in admin panel for appending Lang switcher to needed screen. This screen don`t use default WP wrapper.
2. Where writing this data?Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Custom fieldsYou are welcome.
Fixed. Update please.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Custom fieldsIn new version available config for translation html tags by js.
Udate please.Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Custom fieldsYou need add this function to functions.php in your active theme.
And here$( '#wiloke-location' )add all your needed selectors by coma separator.Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Крутое начало!WP Multilang don not working with field ids in html. It working with field names in database.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Add language not workingYou are welcome.
Glad to help.Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Custom fieldsIf your theme use function
get_post_meta_by_idfor get all metafield for post, filter result on PHP for that is imposible. Because this function don`t have any filter before return result.
But You can use JS function what is in WP Multilang for translate.
As example:add_action( 'admin_enqueue_scripts', 'add_my_translator_script' ); function add_translator_script() { $screen = get_current_screen(); $screen_id = $screen ? $screen->id : ''; if ($screen_id == 'custom_post_type' && $screen->parent_base == 'edit') { wp_enqueue_script( 'wpm_translator' ); wpm_enqueue_js( " (function ( $ ) { $( '#wiloke-location' ).each( function () { var text = wpm_translator.translate_string($(this).val()); $(this).val(text); } ); })( window.jQuery ); " ); } }Set up your needed screen_id.
All available functions You can see in JS objectwpm_translator.Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Custom fields{ "post_fields": { "listing_settings": { "map": { "location": {} } } } }It`s config only for post field. If your meta field use multidimentional array You need set up config for each key, what You need to translate.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Add language not workingTry reinstall plugin with deleting all WP Multilang options from database. Its options starts from
wpm_.