How Can We Help?

Search for answers or browse our knowledge base.

< All Topics
Print

Working with Custom Fields

Most settings that govern display of galleries in NextGEN are global - you set them in the main options area, and they apply across all galleries. Some gallery displays can be customized using NextGEN shortcodes.

Custom fields provide another means to customize individual galleries by using WordPress's custom field capability to apply options to specific post or pages.

How to Edit Custom Fields To edit custom fields, scroll to the bottom of any page or post (be sure that your Screen Setting are set to show "Custom Fields"). Select a specific custom field and enter a key / value for this post. Here is the list of all possible parameters :

Main Gallery Parameters and Possible Values

ngg_gal_ShowOrder
- gallery : Show first the gallery
- slide : Show first the slideshow
ngg_gal_Images
- 0-xxx : (integer) Number of images per page
ngg_gal_Sort
- "pid" : Sort thumbnails with Image ID
- "filename" : Sort thumbnails with File name
- "alttext" : Sort thumbnails with Alt / Title text
ngg_gal_SortDirection
- "ASC" : Ascending sort direction
- "DESC" : Descending sort direction
ngg_gal_ShowSlide
- 0 : (Off) No slideshow link
- 1 : (On) Show slideshow link
ngg_gal_ImgageBrowser
- 0 : (Off) Show Image direct
- 1 : (On) Show ImageBrowser
ngg_gal_Columns
- Specify number of columns for thumbnails

Slideshow Parameters and Possible Values

ngg_ir_Audio
- "url" : (URL) Play the music file
ngg_ir_Overstretch
- none : Keep original dimensions
- fit : Stretch images disproportionally
- true : Stretch images proportionally
ngg_ir_Transition
- Sets the transition between images : fade, bgfade, blocks, bubbles, circles, flash, fluids, lines, random, slowfade
ngg_ir_Backcolor
- 0xHXHXHX : (i.e. 000FFF)
- Backgroundcolor of the controls, in HEX format.
ngg_ir_Frontcolor
- 0xHXHXHX : (i.e. 000FFF)
- Texts & buttons color of the controls, in HEX format.
ngg_ir_Lightcolor
- 0xHXHXHX : (i.e. 000FFF)
- Rollover color of the controls, in HEX format.
ngg_ir_Width
- 0-xxx : (integer) Sets the overall width of the slideshow
ngg_ir_Height
- 0-xxx : (integer) Sets the overall height of the slideshow
ngg_ir_Rotatetime
- 0-xxx : (integer) Sets the number of seconds an image is played back
ngg_ir_Shuffle
- 0 : (Off) Playback the images sequentially
- 1 : (On) Playback the images shuffled
ngg_ir_ShowNavigation
- 0 : (Off) Disable the navigation bar
- 1 : (On) Enable the navigation bar
ngg_ir_ShowWatermark<
- 0 : (Off) No watermark logo
- 1 : (On) Show watermark logo link
ngg_ir_Kenburns
- 0 : (Off) Disable Ken burns effect
- 1 : (On) Enable Ken burns effect

CUSTOM FIELDS & WORDTUBE
Along the custom fields above, NextGEN has offered some integration with the WordTube WordPress plugin in the past. Since the Photocrati acquisition, we have not evaluated this functionality to see if this is still function. Still, for documentation purposes, we want to be sure all knowledge is made available.

NextGEN offers a set of custom fields that allow you to change all settings of the media player for each post/page. So you can add plugins, autostart a file, resize it and more without a effect on other media files. Here is the list of all possible parameters for the custom fields:

  • wt_usewatermark
  • wt_controlbar
  • wt_skinurl
  • wt_playlist
  • wt_backcolor
  • wt_frontcolor
  • wt_lightcolor
  • wt_screencolor
  • wt_displayclick
  • wt_stretching
  • wt_plugins
  • wt_custom_vars
  • wt_showfsbutton
  • wt_volume
  • wt_bufferlength
  • wt_width
  • wt_height
  • wt_media_width
  • wt_media_height
  • wt_playlistsize
  • wt_LTchannelID
  • wt_shuffle
  • wt_overstretch
  • wt_quality
  • wt_activateAds

Example: You can add a video with the shortcode [ media id=3 ] and the custom field wt_plugins with the value metaviewer-1 and custom field wt_custom_vars with the value metaviewer.position=left. Shortcode format might be: [ media id=3 width=480 height=320 ]

Example: If you add as custom field as name wt_plugins and the value rateit-2. Then you can use the plugin RateIt.

Table of Contents
Close Menu