pic

The ColorWay Theme pic shortcode.


Usage

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

Defined (1)

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

/functions/shortcodes.php  
  1.  
  2. /** Slider Image Wrapper */ 
  3. function pic_shortcode( $atts, $content = null ) { 
  4. return '<div class="pic">'.do_shortcode($content).'</div>'; 
  5. add_shortcode('pic', 'pic_shortcode'); 
  6.  
  7. /** Slider Description Wrapper */ 
  8.  
  9. function desc_shortcode( $atts, $content = null ) { 
  10. return '<div class="description">'.do_shortcode($content).'</div>';