gallery

The WordPress Core gallery shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[gallery]'); 
  1. // variable usage 
  2. $result = do_shortcode('[gallery]'); 
  3. echo $result;  

Defined (1)

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

/wp-includes/media.php  
  1.  
  2. return $html; 
  3.  
  4. add_shortcode('gallery', 'gallery_shortcode'); 
  5.  
  6. /** 
  7. * Builds the Gallery shortcode output. 
  8. * This implements the functionality of the Gallery Shortcode for displaying