Support » Plugin: NextGEN Gallery - WordPress Gallery Plugin » [Plugin: NextGEN Gallery] Add gallery(x) to php file

  • I am a rookie and am trying to fiqure out how to add a different gallery to each member page. I have added a field in my members_pages table in the database to handle the galleryid# (gallery). I added a statement to my memberpage.php

    if ($page_row[gallery]) {echo do_shortcode(‘[slideshow id=1]’);}

    This does make the gallery work but it shows the same gallery on each member that has a gallery. I tryed to get it to put in the gallery number by using

    if ($page_row[gallery]) {echo do_shortcode(‘[slideshow id=$page_row[gallery]]‘);}

    but this doesn’t work. Can anyone help? gallery value (1) is saved as text in database.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Maybe get rid of do_shortcode and try,

    if ($page_row[gallery]) {echo nggShowSlideshow('.$page_row[gallery].', width, height);}

    If you still want to use do_shortcode try adding ‘. and .’ before and after your variable.


    Thanks Paul for the suggestion. I tried it and I get the message…..The Flash Player and a browser with Javascript support are needed.. on my pages. Any other suggestions to solve this would be greatly appreciated.


    Paul went back and tried shortcode with ‘.and.’……that worked
    Thank you so much.

    But I have another issue when I upload photos I get…..(Error : Create Image failed. Check safe mode settings)

    I can’t find safe mode settings. The photos do upload and seem to be working OK???



    Not exactly sure what is going on but safe mode usually refers to a php setting on the server, not within the plugin itself. Maybe check with your web host and see if there is an option to turn that off.

    Did you upgrade to the 1.6 version? There is a 1.6.1 that may fix the Flash Player support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] Add gallery(x) to php file’ is closed to new replies.