pll_e() / pll__() on functions.php = KO
-
Hi!
I’ve a problem:
– I load via AJAX a group of posts when “load more posts” button is pressed.
The function defined on functions.php to handle the ajax request, returns an HTML block with the fresh loaded posts. This HTML is basically the same that appears on my index.php, on my theme. So posts loaded on index.php and the ones returned via functions.php have the very same structure and code.Problem is:
– On index.php, functions from polylang work properly. But in functions.php, they don’t.
I’m still having my registred words in english instead of spanish.Why is that?
Thanks.
PS: fact is, that in functions.php I’ve some defined filters (like one to short the excerpt words number to 15 words) and they doesn’t work at all too. What is going on?
- The topic ‘pll_e() / pll__() on functions.php = KO’ is closed to new replies.