• I’m trying to display comment from a post in english inside one who is in french.

    $langage = get_locale();
    if($langage =="fr_FR"){
    $slug='en';
    }else{
    $slug='fr';
    		}
    $leid = $post->ID;
    					$leidt = pll_get_post($leid,$slug);
    					$comments = get_comments(array('post_id' => $leidt,'status' => 'approve','lang' => 'en,fr'));

    Unfortunaly nothing happening, i try replacing the $leidt by the post id, still nothing. but if i take the id of a post with the same lang the comment are returned correctly. Any idea how to disable filter ?

The topic ‘Polylang Multilang comment’ is closed to new replies.