WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Gallery doesn't work when not "private" (2 posts)

  1. mac800
    Member
    Posted 1 year ago #

    Hi!

    I was using nextgen for almost a year on another website withour any problems and now on my new site I have a strange problem.

    While the gallery is working perfectly when a post is "private" it breaks when i publish it.

    It says...

    Warning: reset() expects parameter 1 to be array, null given in /mnt/webh/d1/67/53188067/htdocs/wp-content/plugins/nextgen-gallery/nggfunctions.php on line 704 Warning: current() expects parameter 1 to be array, null given in /mnt/webh/d1/67/53188067/htdocs/wp-content/plugins/nextgen-gallery/nggfunctions.php on line 705 ...

    And it goes on and on like that.

    Would be nice to get some help on this. Any idea?

    regards

    Mac800

  2. mac800
    Member
    Posted 1 year ago #

    After a lot of trial and error (a lot of ERROR), i finally found a solution.

    So for anybody who can't get nggShowImageBrowser () to work in PHP here is my solution:

    <?php
    $gallery = get_post_meta($post->ID, 'gallery_id', true);
    echo nggShowImageBrowser($gallery);
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic