Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sayful Islam

    (@sayful)

    The slider function that is outputting the slider has may parameters. So it may be difficult for you to include in theme. But you can add the following code at your theme directly.

    <?php echo do_shortcode("[all-nivoslider]"); ?>

    You can also add attributes inside it like the following code:

    <?php echo do_shortcode("[all-nivoslider theme='light' animation_speed='500' pause_time='3000']"); ?>

    <?php echo do_shortcode(“[all-nivoslider theme=’light’ animation_speed=’500′ pause_time=’3000′]”); ?>

    in WP 4.2 does not work!

    Did you remember to escape the single quotes?

    Try like this:

    <?php echo do_shortcode('[all-nivoslider theme=\'light\' animation_speed=\'500\' pause_time=\'3000\']'); ?>

    I’m using do_shortcode() with this plugin on 4.2 and it runs fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Code’ is closed to new replies.