Settings in settings => languages for "Hide content inaccessible to the selected language". not marked . This is the preferred state for the entire site, but for some posts I would like to show only the last message in the selected language. (Thus, with no default behavior: "Sorry, this entry is only available in French.").
So far I have this code that shows the last message in the language in which it is written, but I would like to receive only messages written in the selected language.
while ( have_posts() ) : the_post();
$mypost = get_post(get_the_ID());
$content = qtranxf_use('en', $mypost->post_content,false);
echo "$content";
endwhile;
source
share