_e() in ajax script don't translate text
-
I am working in
/themes/my-template/index.phphere is ajax function which is using file
/themes/my-template/ajax/my-ajax-script.phpThe problem is, that _e() translation is working everywher BUT not in my-ajax-script.
in my-ajax-script.php i have added at the top:
include_once(‘../../../../wp-blog-header.php’);Still doesn’t work. Thanks for help.
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
-
The magic words:
I am working in
/themes/my-template/index.phpSince we can’t edit the PHP files here this means:
The site you are asking about does not seem to be hosted on WordPress.COM so you need to make friends over at WordPress.ORG the keepers of the software you are using.
This site is for support of sites hosted on WordPress.COM. You should address your questions to WordPress.ORG the keepers of the software you are using: http://wordpress.org/support/
For more on the difference: http://support.wordpress.com/com-vs-org/
-
- The topic ‘_e() in ajax script don't translate text’ is closed to new replies.