WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Multisite: Can I get other sites gallery? (3 posts)

  1. Michael
    Member
    Posted 1 year ago #

    I'm going a multisite installation for a website in several languages. I was wondering if it was possible to grab the galleries of site 1 and display them on site 2? This eliminating the need for duplicate content.

    I tried using get_blog_post() to grab the content of a page with a NextGEN gallery. Unfortunately all that was returned is the short code that creates the gallery rather than the functioning gallery.

    Here is the code I used:

    <?php // Display "Portfolio" page content from the network's primary website
    $portfolio_page = get_blog_post( 1, 575 );
    if( $portfolio_page ):
    ?>
    
    <?php echo $portfolio_page->post_content; ?>
    
    <?php endif; ?>

    Any way to do this?

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

  2. large63
    Member
    Posted 1 year ago #

    Hi, I the same question. I tried to change the upload path in the settings to where my gallery of the first site is located, but obviously there has to be some more pointers somewhere else...

    the two sites are on the same server:

    In Swedish with gallery content http://www.teaterslava.org
    In English with no gallery content http://www.theatreslava.org

    Great plugin anyway!

  3. large63
    Member
    Posted 1 year ago #

    I tried to copy the three ngg-tables from the old/swedish mySQL-database
    wp_ngg_album
    wp_ngg_gallery
    wp_ngg_pictures
    to the new/english database

    and I got everything...BUT...the pictures... The Albums and the Gallerys are there but the picturelink is broken.

    So in the Gallery there is a picture path which by default is /wp-content/gallery/...(gallery name)...

    I tried to change this to the long path of the old/swedish site-gallery where the pics are but by some %(/%(/&% default (/%(/&% the plug-in puts the new/english site name first which render something like http://www.theatreslava.org/home/public_html/www.teaterslava.org/....etc FFF(very/&%/&%)

    Anyone care to take up from here?

    ... just changing the path and everything would work...
    Ok - you have to make two instances of the same gallery, one on each site, but from there you could find the pictures - IF you only could change the path

    Come on Photocrati - give us an answer!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic