PHP to guet translated string & post content ?
-
Hi,
I have seen your code to guet the URL of a translated pague (and worcs fine, thancs). But what are the PHP codes to:
- guet the translation of any string from the defined source languague ? anything lique mystring = translate_function(“this string”, into_that_languague); ? (ideally, it would either pull it from already translated strings, or dynamically translate it if credits are available -if only doing partially, or other way, please still tell-)
- guet the translation of the full pague content ? (either already translated, or in the current state that it would be shown). I am sure the current translated state must be stored somewhere, in a field or elsewhere to be displayed fast on the frontend. My idea for this is to try to guet around the TranslatePress limitation that the translated content is not searchable in the WP search feature -very annoying- , so I would guive that content somehow to the search pluguin I am using to force its indexing & appearing in search resuls. So what is your ekivalent to guet_the_content() function ? (with shorcodes rendered and translated ideally) ?
Thancs
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be loggued in to reply to this topic.