CPT Bootstrap Carousel

A custom post type for choosing images and content which outputs Bootstrap Image Carousel (slider) from a shortcode.

Author:Phil Ewels (profile at wordpress.org)
WordPress version required:3.0.1
WordPress version tested:5.5.3
Plugin version:1.12
Added to WordPress repository:19-04-2013
Last updated:11-11-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:86
Rated by:29
Plugin URI:http://www.tallphil.co.uk/bootstrap-carousel/
Total downloads:188 067
Active installs:7 000+
plugin download
Click to start download

A custom post type for choosing images and content which outputs a carousel from Twitter Bootstrap using the shortcode [image-carousel].

The plugin assumes that you’re already using Bootstrap, so you need to load the Bootstrap javascript and CSS separately.

This plugin is available from the WordPress Plugins Directory: https://wordpress.org/plugins/cpt-bootstrap-carousel/.
The source code is maintained on GitHub: https://github.com/ewels/cpt-bootstrap-carousel.

Shortcode Options

As of version 1.5, nearly all of these options can be set in the CPT Bootstrap Carousel Settings page. However, if you’d like different settings for different carousels, you can override these by using shortcode options…

  • interval (default 5000)

    • Length of time for the caption to pause on each image. Time in milliseconds.
    • [image-carousel interval="12000"]
  • showcaption (default true)

    • Whether to display the text caption on each image or not. true or false.
    • [image-carousel showcaption="false"]
  • showcontrols (default true)

    • Whether to display the control arrows or not. true or false.
    • [image-carousel showcontrols="false"]
  • orderby and order (default menu_order ASC)

    • What order to display the posts in. Uses WP_Query terms.
    • [image-carousel orderby="rand"]
    • [image-carousel orderby="date" orderby="DESC"]
  • category (default all)

    • Filter carousel items by a comma separated list of carousel category slugs.
    • [image-carousel category="homepage,highlights"]
  • id (default all)

    • Specify the ID of a specific carousel post to display only one image.
    • Find the image ID by looking at the edit post link, eg. post 109 would be /wp-admin/post.php?post=109&action=edit
    • [image-carousel id="109"]
  • twbs (default 2)

    • Output markup for Twitter Bootstrap Version 2 or 3.
    • [image-carousel twbs="3"]

Credits

This plugin was written by @tallphil with help and suggestions from several others including (but not limited to) @reddo, @joshgerdes, @atnon, @grahamharper, @rchq, @oheijo, @smtk, @cla63, @cookierebes and @sipman.

The Serbo-Croation translation was kindly provided by Borisa Djuraskovic from http://www.webhostinghub.com

The Spanish translation was provided by Chema Bescós from IBIDEM GROUP (https://www.ibidemgroup.com)

Contributing

If you would like to contribute to this plugin, please make a personal fork of the GitHub repository and then submit a pull request. For more details please see the contributing guide.