Easy Nivo Slider
Showing attached images from another post (5 posts)

  1. RavanH
    Posted 4 years ago #


    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(),


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

    this is achieved :)


  2. Claudio Rimann
    Posted 4 years ago #

    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?

  3. Claudio Rimann
    Posted 4 years ago #

    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.

  4. RavanH
    Posted 4 years ago #

    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...

  5. RavanH
    Posted 3 years ago #


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

    $qry = array(
    	'lang' => '',
    	'post_parent'   	=> $parms['id'],

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Nivo Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic