aprinciple
Forum Replies Created
-
аттрибуты меняю под соответсвующим флажком, не через []
Я ниже написал, что квадратные скобки [] показывает при обновление/сохранение нового перевода, я тоже пишу обычный текст на вкладке соответствующего языка.
Работает только для 2 языков, если больше 2-х — нет- This reply was modified 5 years, 1 month ago by aprinciple.
- This reply was modified 5 years, 1 month ago by aprinciple.
In theory it should be like this [:en]Color[:ru]Цвет[:3rd]Translate for 3rd lang[:]
P.S. This shows on update / save, then shows normal text, I write text, not code in brackets
- This reply was modified 5 years, 2 months ago by aprinciple.
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Fix for WP 5.4<?php wpm_translate_string(‘[:it]La nostra squadra[:en]Our team[:ru]Наша команда[:]’) ?>
I have forgotten to add an “echo” 😀
It all works)
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Fix for WP 5.4Not working,
<?php wpm_translate_string('[:it]La nostra squadra[:en]Our team[:ru]Наша команда[:]') ?><?php echo do_shortcode(‘[wpm_translate][:it]Detali[:en]More[:ru]Подробнее[:][wpm_translate]’); ?>
I don’t know how to make this shortcode correct
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Fix for WP 5.4Example, function “wpm_translate_string” doesn’t work/translate
<?php wpm_translate_string(‘[:it]Maggiori dettagli[:en]More); ?>
Doesn’t support Plugin – Rank Math SEO, supports translate of keywords only one language now
- This reply was modified 6 years ago by aprinciple.
- This reply was modified 6 years ago by aprinciple.
- This reply was modified 6 years ago by aprinciple.
Fixed. There were not enough arguments for
do_action('wp_login', $_POST['user_name']);in function my custom form.Added $user and everything works
do_action(‘wp_login’, sanitize_user($_POST[‘user_name’]), $user);
- This reply was modified 6 years, 8 months ago by aprinciple.