WordPress.org

Ready to get started?Download WordPress

Forums

Slideshow
English and French version (5 posts)

  1. ericampleman
    Member
    Posted 1 year ago #

    Hi,

    The manager of site have left the building and I installed this plugin. It's work fine and very easy to use.

    I have just a question: is it possible to manage two langages pages with this plugin? I usualy use this code:
    <h1><?php _e('[:en]Renewal reminder[:fr]Aide-mémoire renouvellement'); ?></h1>

    What can I do with this:
    <?php do_action('slideshow_deploy', '1506'); ?>

    Thank you!

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

  2. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Eric,

    I've looked up some WordPress forum posts about this and I believe you'll have to do something like this:

    <?php $currentlang = pll_current_language();
    if($currentlang=="en"):?>
    	<?php do_action('slideshow_deploy', '1506'); ?>
    <?php elseif($currentlang=="fr"):?>
    	<?php do_action('slideshow_deploy', 'The ID of the French slideshow here.'); ?>
    <?php endif; ?>

    Best regards,
    Stefan

  3. ericampleman
    Member
    Posted 1 year ago #

    Great!!
    Thank you

  4. ericampleman
    Member
    Posted 1 year ago #

    Hello Stefan,

    Finally, it's don't work..
    When a did it, the all footer content was disapear.

    This slideshow is include on footer page's of site, you can take a look at : http://www.ssqauto.com

    I tryed also to integrate code on css but don't work too.

    Thank you if you can help me!

    Eric

  5. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Eric,

    I'm sorry, I simply copied the PHP code from a different forum without looking at the function that's used.

    The function is defined in this plugin: Polylang.

    You'll need it to use the code.

    Goodluck!

    Best regards,
    Stefan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic