WordPress.org

Ready to get started?Download WordPress

Forums

Slideshow
[resolved] wpml multilanguage with different slideshows (3 posts)

  1. jedimarv
    Member
    Posted 1 year ago #

    Hello,

    I want to use the use the php code in my multilanguage pages.

    What php code should I use when I want 4 different slideshows for every language. I have these urls:

    http://www.example.com (standard)
    http://www.example.com/?lang=en
    http://www.example.com/?lang=po
    http://www.example.com/?lang=es

    For example:

    <?php do_action('slideshow_deploy', '7'); ?> and
    <?php do_action('slideshow_deploy', '3'); ?> and
    <?php do_action('slideshow_deploy', '71'); ?> and
    <?php do_action('slideshow_deploy', '6'); ?>

    Coould you please help with this. Many thanks.

    kind regards,

    Mark

    http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/

  2. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Mark,

    If the language ID is included in the URL, you could simply do this:

    <?php if($_GET['lang'] == 'en')
        do_action('slideshow_deploy', '3');
    elseif($_GET['lang'] == 'po')
        do_action('slideshow_deploy', '71');
    elseif($_GET['lang'] == 'es')
        do_action('slideshow_deploy', '6');
    else
        do_action('slideshow_deploy', '7'); ?>

    Best regards,
    Stefan

  3. jedimarv
    Member
    Posted 1 year ago #

    Stefan,

    Thank you for your quick response.

    PhP code works perfectly.

    Thanks a lot!!

    Bedankt kerel!! hehe

    Groetjes Mark

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic