Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter xbonet

    (@xbonet)

    Ok, I understand that specification; however, when my registered string is

    pll_register_string('Find out more', 'Find out more');

    and I try to echo it out using

    pll_e('Find out more')

    or

    echo pll__('Find out more')

    in all language instances, I get as a result “Find out more”… that is, it’s not echoing the translated strings I’ve specified in the Strings Translations section in WP.

    In all cases I’m using, both the stringname and the stringcontent are the same, so even though I was initially confused between which should be used with pll_e() and pll__(), in practice the issue is still the same: these are echoing whatever I place between the ('') and not actually the string content.

    Thread Starter xbonet

    (@xbonet)

    Just to update this issue, after extensive trials I’ve found that it’s not even that the functions are echoing the name of the string, they’re actually just echoing whatever one writes in them… so if I write pll_e('stringname') it echoes out “stringname” and if I write pll_e('flying-pink-cats') it echoes out “flying-pink-cats”… What’s going on, then?

    Thread Starter xbonet

    (@xbonet)

    P.P.D. Perhaps I should point out that the WP posts in question do have attached images. The plugin has a code section that specifically checks for attached images. So why is it not finding any and reverting back to the Web’s og:image?

Viewing 3 replies - 1 through 3 (of 3 total)