• Resolved alb76

    (@alberto76)


    Hi,
    I need show in video a title and part of content of one post/page with something like this : if language is “fr” { $id=20; $content_post = get_post($my_postid);$content = $content_post->post_content;
    $content = apply_filters(‘the_content’, $content);
    echo $content;}

    but the id of post is same for all languages, how do it?

    one more thing the plugin essential grid is supported/compatible for wp globus.

    Thank you for all

    https://www.ads-software.com/plugins/wpglobus/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    @alberto76
    current language you can get WPGlobus::Config()->language,
    but you are right
    echo apply_filters(‘the_content’, $content);
    returns content for current language too

Viewing 1 replies (of 1 total)
  • The topic ‘Chose a content with php if’ is closed to new replies.