pll_e and pll__ echoing the NAME of my custom strings and not the CONTENT
-
I’m having a very bizarre issue, as it’s occurring (it seems) randomly. I place two
pll_e
orpll__
commands one after the other with two different translation strings I’ve correctly setup in my functions.php (and are both showing up in the Strings Translations section of my WP dashboard) and one works, but the other doesn’t. The one that’s not working just spits out whatever I’m placing between the quotations marks in mypll_e
orpll__
command, i.e. if I writepll_e( 'stringname' );
, it will echo stringname.The reason I’m placing them side by side is to test them out. Because the two instances that don’t work, seem not to work throughout the site!
I’ve tried everything and can’t figure out why.
All my custom strings are correctly registered in my functions.php using this format:
pll_register_string( 'stringname', 'stringcontent' );
I’ve checked and rechecked; and in fact all of them are appearing correctly in the Strings Translations sections, as I mentioned.
It’s when I try to use them that only some of them work. And it doesn’t even have to do with the location of the
pll_e
orpll__
commands, as I’ve tried placing them all over the place to no avail…
- The topic ‘pll_e and pll__ echoing the NAME of my custom strings and not the CONTENT’ is closed to new replies.