WordPress.org

Forums

Multisite Language Switcher
[resolved] Get page/post translations (continuation) (3 posts)

  1. titi5895
    Member
    Posted 2 years ago #

    Hi Dennis,

    For this subject : http://wordpress.org/support/topic/get-pagepost-translations

    That's possible to get id of translations in addition to URLs ?

    Thanks in advance.

    http://wordpress.org/extend/plugins/multisite-language-switcher/

  2. Dennis Ploetner
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. titi5895
    Member
    Posted 2 years ago #

    it works perfectly

    Thanks a lot Dennis !

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multisite Language Switcher
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.