• Resolved oribrn

    (@oribrn)


    Hi,

    I have register a custom sting to function.php:

    add_action('init', function() {
                   pll_register_string('similar', 'varietes');
    });

    Now, I try to echo inside php template file:

    echo '<div class="related"><h4 class="related-portfolio"> Translation text </h4><ul>';

    to

    echo '<div class="related"><h4 class="related-portfolio"> ' . pll_e('similar') .' </h4><ul>';

    What am I doing wrong in syntax?

    Thanks

    • This topic was modified 3 years, 6 months ago by oribrn.
    • This topic was modified 3 years, 6 months ago by oribrn.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Translate strings’ is closed to new replies.