There is module Publish as part of WPGlobus Plus
https://wpglobus.com/product/wpglobus-plus/#publish
-
This reply was modified 6 years, 4 months ago by
Alex Gor.
I think must be a free way to do this.
For exemple:
…
$post_link = get_post_permalink();
$post_text = file_get_content( $post_link );
if( $post_text…. ){
…
}
is it?
Can I take one translation on page of other translation?
To get any kind of content in the current language (post title, post content, meta value, etc.), you can use the text_filter function
https://github.com/WPGlobus/WPGlobus/blob/develop/includes/class-wpglobus-core.php#L24
$content_in_current_language = WPGlobus_Core::text_filter ($content_with_language_marks, WPGlobus::Config()->language, WPGlobus::RETURN_EMPTY);
If $content_in_current_language is empty, it means that the translation does not exist.
You can replace WPGlobus::Config()->language with any value from WPGlobus::Config()->enabled_languages array.
Sorry, it’s too hard for me.
There is code:
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
the_title();
the_content();
}
}
How to check another translation empty is?
Is it posible?