Nextgen Gallery Plugin

November 18, 2008 by Shane Hartman  
Filed under wordpress

I highly recommend the Nextgen Gallery Plugin for managing picture libraries. You can see examples of its use here.

Start by reading David Potter’s Introduction to the plugin. 

The biggest issue I ran into is increasing the memory limit for PHP as whole. Fix that by setting
    php_value memory_limit = 48M
in php5.ini AND add the statement
    define(‘WP_MEMORY_LIMIT’, ‘48M’);
to wp-config.php

Setting the value in php5.ini only seems to affect the root directory. So uploading large images still ran out of memory until I also modified wp-config.php.

I also had to increase the php_value max_execution_time in php5.ini as processing some pictures batches takes minutes.

Once its setup, using it in posts and pages is simple:

[ slideshow=id,width,height ]
[ album=id,extend ] or [ album=id,compact ]
[ gallery=id ]
[ singlepic=id,width,height,mode,float ]
[ imagebrowser=id ]
[ tags=name,name,name ]
[ albumtags=name,name,name ]

In real code, omit the blank spaces after and before the brackets. There is no way to escape the sequence to prevent the plugin from processing when I try to quote the code here. Introducing spaces causes the gallery plugin to pass over the text.

Share with others:
  • email
  • Facebook
  • MySpace
  • Print
  • Slashdot
  • StumbleUpon
  • Technorati
  • TwitThis
  • Yahoo! Buzz
  • Digg
  • del.icio.us
Login or register to rate this article: 0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)

Tell us what you're thinking...
and if you want a pic to show with your comment, go get a gravatar!