NextGEN Gallery
Display Gallery in blog 1 from blog 2 (1 post)

  1. ulivim
    Posted 4 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic