WordPress.org

Support

Support » Plugins and Hacks » [Plugin: NextGEN Gallery] Display Gallery in blog 1 from blog 2

[Plugin: NextGEN Gallery] Display Gallery in blog 1 from blog 2

  • I’m trying to insert a gallery of blog 2, in the main blog.

    <?php echo nggShowRandomRecent ('', 5,'', 1); ?>

    This function works correctly for the same blog.

    so I tried this:

    <?php switch_to_blog (2);
    echo nggShowRandomRecent ('', 5,'', 1);
      restore_current_blog (); ?>

    but does not work.

    with all other functions, I resolved with switch_to_blog ().

    I looked at the plugin code, but I do not understand why not use the tables of the blog 2, to make the query.

    http://wordpress.org/extend/plugins/nextgen-gallery/

  • The topic ‘[Plugin: NextGEN Gallery] Display Gallery in blog 1 from blog 2’ is closed to new replies.