Support » Plugin: WP Nivo Slider » [Plugin: WP Nivo Slider] Multiple Instances Possible?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author lcrafael


    Unfortunately not yet. Who knows I do this for a next version. But I do not know if the idea of the plugin.

    Rafael Cirolini
    [sig moderated as per the Forum Rules]

    +1 for Multiple Instances

    We modified the plugin to support multiple instances.

    open /wp-content/plugins/wp-nivo-slider/wp-nivo-slider.php

    STEP 1
    find line: function show_nivo_slider() {
    replace: function show_nivo_slider($number_category) {

    to accept a parameter to this function that is the category you want to show.

    STEP 2
    find line:

    $category = get_option('wpns_category');
    $n_slices = get_option('wpns_slices');


    $category = $number_category;
    	//get count post -
    	query_posts( 'cat=$category' );
    	if( have_posts() ) : while( have_posts() ) : the_post();
    	$n_slices = $contpost;

    get number of slides in the category

    STEP 3
    In the template where you want to display the slider placed this line.
    <?php if ( function_exists('show_nivo_slider') ) { show_nivo_slider(4); } ?>;tag_ID=4&post_type=post.
    the TAG_ID is the number.

    greetings! and any matter please contact us.

    Spark Labs.

    Hi Spark Labs,

    I tried your changes above, but it doesn’t seem to work. I tried adding 3 boxes to a page, and the first one loads but the second and third are stuck in the loading screen (round loading screen keeps turning).

    Thanks by the way for being so supportive! Plugin works nice, simple and easy. First plugin that worked out of the box in a template for me 🙂

    Kind regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Nivo Slider] Multiple Instances Possible?’ is closed to new replies.