JJ NextGen JQuery Slider
[fixed] solution - gallery name instead of id ;-) (1 post)

  1. ontwerp
    Posted 3 years ago #

    Hi all

    When you wanto use gallery name instead of id [can be handy sometimes]
    Us this db action in your template:

    //ref http://wordpress.org/extend/plugins/jj-nextgen-jquery-slider/
    global $wpdb;
    $galleryresult = $wpdb->get_var( "SELECT gid FROM $wpdb->nggallery WHERE name ='".$cat."'" );

    //corresponding id with it's name is :
    $gid = $galleryresult[0]

    //you can use this then in a shortcode action like:

    $showgallery = "[jj-ngg-jquery-slider gallery='".$gid."' width='700' height='120' controlNav='false' pausetime='5000']";
    $showgallery = apply_filters('the_content', $showgallery );
    echo $showgallery;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JJ NextGen JQuery Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic