Display registered custom string in an page template of my theme
-
Hi,
i’ve registered some string used by Studiofolio theme, e.g.”Show All”
with
pll_register_string(‘string1’, ‘Show All’);
at the end of the functions.php of my theme, it works perfectly.As suggested, for display the string in the right language in my theme, i’ve inserted in the template of the page where the string to be translated,
pll_e(‘Show All’);
or (equivalent):
echo pll__(‘Show All’);but does not work.
I’m not a php expert,
Thank you in advance for any advice or suggestions.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display registered custom string in an page template of my theme’ is closed to new replies.