Technology Insights

Post an Image From NextGen Gallery Into a WordPress Post

Posting a single picture from a NextGen Gallery into a WordPress post is easy to do though I always seem to forget the actual syntax to do so. There are two ways in which you can display the image within a post which are to use the NextGen Gallery button from the kitchen sink interface within WordPress or you can simply use the syntax listed below.

WordPress NextGen Gallery Button:

Code Snippets

WordPress NextGen Gallery – Add Date Print Out to Compact Album Listings

I was working on my personal blog and wanted to add the date or a date range to the top of each gallery when they are listed out. The blog I am speaking of uses WordPress, WP version 2.7, with the NextGen Gallery plugin, NGG version 1.2.1, for pictures. I list the all of the galleries by using the album compact function so the below howto relates to that function only. What it will do is simply print out anything in the description field right above the image you have highlighted for each gallery. Since I was not using the description for anything else I just add the date or a date range into that field such as 01-01-2009 or 04-16-2009 to 08-10-2009.  Follow the directions below and you can print out anything you like above each gallery listing.

The NextGen Gallery shortcode used to display the galleries:

php

  1. [album=3,compact]

Technology Insights

WordPress NextGen Gallery Watermarking With Images Not Working

When I first installed NextGen Gallery plugin for WordPress I could not get the watermarking working. I read of all sorts of problems with it including FreeType not being installed, permission problems, etc. but everything that I was trying was not resolving my issue. During upload I was not getting any errors so at the time I felt I had little to go on. To make a long story short I finally read a post on WordPress.org that said the watermark image has to be a PNG for it to work. I saved my watermark file as a .png file and sure enough it worked without issue.