WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. RavanH
    Member
    Posted 2 years ago #

    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/

  2. Claudio Rimann
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 1 year ago #

    UPDATE:

    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

About this Topic