Support » Plugin: Easy Nivo Slider » [Plugin: Easy Nivo Slider] Showing attached images from another post

  • Hi,

    Although I have the impression this plugin is not actively developed anymore, I ‘d like to suggest a feature that I needed. Just like the WordPress internal shortcode [gallery] allows via the attribute id="xx" to show a gallery with attached images from another post, I needed the Nivo slider shortcode to be able to do the same.

    By simply replacing lines 21 and 22 in misc/current-post-list-images.php:

    $qry = array(
    	'post_parent'   	=> get_the_ID(),

    with

    if (!$parms['id'])
    	$parms['id'] = get_the_ID();
    
    $qry = array(
    	'post_parent'   	=> $parms['id'],

    this is achieved 🙂

    http://wordpress.org/extend/plugins/easy-nivo-slider/

Viewing 4 replies - 1 through 4 (of 4 total)
  • looks like a very handy solution. but: it seems to only work on posts, on pages i get a message: “No images found.”
    any ideas how to fix this?

    nope. looks like it has nothing to do with that.
    client uses WPML plugin and the snippet works, but only inside one language.

    if anyone has a suggestion it would be very helpful.

    Ask your client to switch to a simple more lightweight multi-language plugin: Polylang. I made the modification for that one. No idea why it does not work with WPML…

    UPDATE:

    For the latest version of Polylang, this mod needs an extra parameter in the $qry array:

    $qry = array(
    	'lang' => '',
    	'post_parent'   	=> $parms['id'],
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Easy Nivo Slider] Showing attached images from another post’ is closed to new replies.