Support » Plugin: Multisite Language Switcher » Get page/post translations (continuation)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    Yes, it’s similar:

    $temp  = array();
    $blogs = MslsBlogCollection::instance();
    $post  = new MslsOptionsPost( $id );
    foreach ( $blogs->get_filtered() as $blog ) {
    	if ( $blog->userblog_id != $blogs->get_current_blog_id() ) {
    		$language        = $blog->get_language();
    		$temp[$language] = $post->$language;
    	}
    }

    Cheers,
    Dennis.

    it works perfectly

    Thanks a lot Dennis !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get page/post translations (continuation)’ is closed to new replies.