• 1. your permalinks settings: Post name
    2. if you are using a static front page: Yes
    3. your Polylang settings: Default; Language is set from content/keep language in pretty-link

    First of all: Thanks for this amazing plugin, I’ll use it everytime ^-^.

    Issue: Im trying to register the string (which works), I see them in the Language -> strings tab; But when I try to print the registered string it echo’s just a string… and not an entry in the polylang string setting page..

    register string : pll_register_string(‘Entry’, ‘entry’);
    print string: <?php pll_e(‘Entry’); ?> It will print ‘Entry’ regardless whats in the string settings textbox per language.

    I’m probably doing something wrong, but I can’t figure it out by myself :< Maybe someone who would like to enlighten me?

    Thanks!
    Erwin

    https://wordpress.org/plugins/polylang/

Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    The string detection is case sensitive. And the string to translate is the second parameter in pll_register_string. So you should have:

    <?php pll_e('entry'); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Polylang custom strings, display strings’ is closed to new replies.