wp_caption

/* Fix wp-caption width -----------------------------------------------------------------------------------.


Usage

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

Defined (1)

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

/functions.php  
  1.  
  2. /**-----------------------------------------------------------------------------------*/ 
  3. /* Fix wp-caption width 
  4. /**-----------------------------------------------------------------------------------*/ 
  5.  
  6. add_shortcode('wp_caption', 'fixed_img_caption_shortcode'); 
  7. add_shortcode('caption', 'fixed_img_caption_shortcode'); 
  8. function fixed_img_caption_shortcode($attr, $content = null) { 
  9. // Allow plugins/themes to override the default caption template. 
  10. $output = apply_filters('img_caption_shortcode', '', $attr, $content); 
  11. if ( $output != '' ) return $output;