image-carousel

The CPT Bootstrap Carousel image carousel shortcode.


Usage

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

Defined (1)

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

/cptbc-frontend.php  
  1. // Parse incomming $atts into an array and merge it with $defaults 
  2. $atts = shortcode_atts($options, $atts); 
  3.  
  4. return cptbc_frontend($atts); 
  5. add_shortcode('image-carousel', 'cptbc_shortcode'); 
  6.  
  7. // Display carousel 
  8. function cptbc_frontend($atts) { 
  9.  
  10. // Build the attributes