gallery

The Jetpack by WordPress.com gallery shortcode.


Usage

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

Defined (2)

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

/json-endpoints/class.wpcom-json-api-post-endpoint.php  
  1.  
  2. if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'wp-windows8' ) ) { 
  3. remove_shortcode( 'gallery', 'gallery_shortcode' ); 
  4. add_shortcode( 'gallery', array( &$this, 'win8_gallery_shortcode' ) ); 
  5.  
  6. switch ( $field ) { 
  7. case 'name' : 
  8. $post_id = $this->get_post_id_by_name( $field_value ); 
/json-endpoints/class.wpcom-json-api-post-v1-1-endpoint.php  
  1.  
  2. if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'wp-windows8' ) ) { 
  3. remove_shortcode( 'gallery', 'gallery_shortcode' ); 
  4. add_shortcode( 'gallery', array( &$this, 'win8_gallery_shortcode' ) ); 
  5.  
  6. switch ( $field ) { 
  7. case 'name' : 
  8. $post_id = $this->get_post_id_by_name( $field_value );