WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Slider
[resolved] Only works if you call within WordPress (6 posts)

  1. StrongumDog
    Member
    Posted 2 years ago #

    The php code that calls the plugin from a template doesn't work ie:
    <?php if(function_exists(‘jquery_slider’)) { jquery_slider(); } ?>

    Works fine if you call from with page or post - but this is no good for me

    http://wordpress.org/extend/plugins/jquery-slider/

  2. ddpweb
    Member
    Posted 2 years ago #

    I found that you could get it to work by using the template tag for the short codes:

    eg:

    <?php echo do_shortcode('[shortcode option1="value1" option2="value2"]'); ?>

    like this:
    <?php echo do_shortcode('[jQuery Slider]'); ?>

  3. Gabriel Reguly
    Member
    Posted 2 years ago #

    Hi,

    Function returns a value, one should echo it.

    <?php
    if ( function_exists( 'jquery_slider' ) ) { echo jquery_slider(); } ?>
    ?>

    Cheers,
    Gabriel

  4. NosCoffin
    Member
    Posted 1 year ago #

    None of these methods work under WP 3.4.1.

  5. philhoyt
    Member
    Posted 1 year ago #

    Doing this get the slider to show up, but not the images you associate with the slide.

  6. Vijay Kumar
    Member
    Plugin Author

    Posted 1 year ago #

    <?php if ( function_exists( 'jquery_slider' ) ) { echo jquery_slider(); } ?>
    

    This works fine in template files.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic