WordPress.org

Ready to get started?Download WordPress

Forums

ShortCodes UI
[resolved] Request Feature Multilangual with WPML (4 posts)

  1. sireneweb
    Member
    Posted 1 year ago #

    Hi,
    can you add support for WPML Plugin.
    Actually you can't use shortcode in multilangual, because it doesn't display the good translation, just keep the original translation.

    For exemple :
    in FR language [sm1] contains -> <div>My french variable</div>
    in EN language [sm1] contains -> <div>My english variable</div>

    Please see link below
    http://wpml.org/documentation/support/

    http://wordpress.org/extend/plugins/shortcodes-ui/

  2. sireneweb
    Member
    Posted 1 year ago #

    I found the solution, in public function load_shortcodes just add as args
    'suppress_filters' => 0

    Please see this link below
    http://wpml.org/forums/topic/get_posts-in-right-language/

  3. sireneweb
    Member
    Posted 1 year ago #

    I must duplicate the function because i get an error in admin panel

    //register shortcodes
    if(!$isadmin){
    add_action('plugins_loaded',array($this,'load_shortcodes'));
    // load shortcodes with $args 'suppress_filters' => 0
    }

    if($isadmin){
    add_action('plugins_loaded',array($this,'load_shortcodes_admin'));
    // load shortcodes without $args 'suppress_filters' => 0
    }

  4. Bainternet
    Member
    Plugin Author

    Posted 1 year ago #

    updated and added!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.