Ajax’s WP Query results are not translated in the 2nd language
-
Hey guys,
I’m trying to create a compatibility with my theme and i’m struggling a bit with an Ajax Search functionality.
The exact issue that i’m having is when in the 2nd language, the WP_Query’s results (for example titles) don’t return translated, even though i’m searching in the active 2nd language. To get the titles I’m using
get_the_title()
. For example here’s a quick video: https://d.pr/v/wYxnUg .I want to point out that I enabled the “Disable dynamic translation” option. If i uncheck it, it’ll work by JS replacement. However i want it to be server side.
If you have any tips to recommend, such as a method that does this, i’d really appreciate it. Searched the code but couldn’t spot anything in particular.
Thanks a lot!
Marius
- The topic ‘Ajax’s WP Query results are not translated in the 2nd language’ is closed to new replies.