VaLeXaR
Forum Replies Created
-
Hi @dimasp
For compatibility with WP Multilang use only that page Builders which in compatibility list in description to the plugin.Hi @kdmaxfuchs
What version of WP Bakery Visual Composer are You using?Hi @uili
{ "post_types": { "post": null } }You can use “Show only in specific language” metabox, for displaying the post only in needed language. Also You can do not translating the post on another languages. And it will be only in default language.
Use
wpm_get_language()and switch logo image.switch (wpm_get_language()) { case 'en': //for English break; case 'de': //for Germany break; default: //for others }Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Has translationHi @dcrystalj
What language are You need? Current localization language or current edit language?
For get current language, You can use ‘wpm_get_language()’. For get current edit language(only in admin) You can use:$edit_lang = !empty($_GET['edit_lang']) ? $_GET['edit_lang'] : get_user_meta( get_current_user_id(), 'edit_lang', true );.- This reply was modified 8 years, 4 months ago by VaLeXaR.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] ACF fieldHi @joooooose
By default is translating only text, textarea and wisywig field types in ACF. Where You are adding the field? And what is the field type?Hi @gingerbooch
Each plugin has its own structure, own functions, own methods. Each developer does it on its own. There is no single way that would be universal for all plugins.
You need to look at the code of the plugin that you want to integrate. Search for filters, if any, before storing data to the database in order to extract old translations and add a new one. Also look the filters before outputting the desired thread to the screen to translate it into the desired language.
Regards.Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] NEED MORE INFORMATION!Hi @jasonbrogdon
In description to the plugin exist all information about adding language switcher on your site.
If you have the ability to write advanced documentation to this plugin or You have a time for help to develop this plugin, I will gladly accept your help.Thank you.
Hi @gingerbooch
Sorry, but Geomywp is not supported.But should the logo be translated?
Do all tnemes have the same logo settings?
Add additional logo setting.
Using ‘wpm_get_language()’ for getting language, show needed logo image.Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] ACF Link Field TypeWhat exactly do you need to translate? Is the title or url? Url registers to the database and therefore can not change dynamically. You will have to register the url for each language. Is it possible to use a different field type better?
You can use this code to translate the title and url.add_filter('wpm_acf_link_config', function() { return array( 'title' => array(), 'url' => array() ); });Just copy content of ‘wpm-config’ here.
And add link for admin post types page.- This reply was modified 8 years, 4 months ago by VaLeXaR.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Has translationHi @dcrystalj
You can usewpm_is_ml_string()for check if it is multilingual string. Then You can usepreg_matchfor find multilinagual tag for needed language.As I see here no filter for filtering post title. Can You redeclare the template in your theme?
And then replace$property->post_titlewithapply_filters('post_title', $property->post_title).- This reply was modified 8 years, 4 months ago by VaLeXaR.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] ACF Link Field TypeTry this
add_filter('wpm_acf_url_config', '__return_empty_array');