the_related_images

Template function for theme authors.

Description

the_related_images( (string) $type = 'tags', (int) $maxNumbers = 7 ); 

Parameters (2)

0. $type — Optional. (string) => 'tags'
$type could be tags or category
1. $maxnumbers — Optional. (int)
$maxNumbers of images

Usage

  1. if ( !function_exists( 'the_related_images' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextcellent-gallery/nggfunctions.php'; 
  3.  
  4. // (optional) $type could be 'tags' or 'category' 
  5. $type = 'tags'; 
  6.  
  7. // (optional) $maxNumbers of images 
  8. $maxnumbers = -1; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = the_related_images($type, $maxnumbers); 
  12.  

Defined (1)

The function is defined in the following location(s).

/nggfunctions.php  
  1. function the_related_images($type = 'tags', $maxNumbers = 7) { 
  2. echo nggShowRelatedImages($type, $maxNumbers);