A custom post type for choosing images and content which outputs Bootstrap Image Carousel (slider) from the [image-carousel] shortcode.
wp_head()in your theme's
First of all, install and activate the plugin. Go to 'Carousel' in the WordPress admin pages and add some images. Then, insert the carousel using the
[image-carousel] into the body of any page.
Absolutely - you just need to use the do_shortcode WordPress function. For example:
<?php echo do_shortcode('[image-carousel]'); ?>
You can specify the order that the carousel displays images by using the
order shortcode attributes. You can use any terms described for the WP_Query orderby terms, such as random, by date, by title and by menu order.
Yes - create a few categories and add your specific images to a specific category. Then, when inserting the shortcode into the page, specify which category you want it to display images from using the
category shortcode attribute.
The carousel shortcode has a number of attributes that you can use to customise the output. These are described on the main plugin Description page.
[image-carousel]shortcode in your page?
Try writing the shortcode using the 'Text' editor instead of the 'Visual' editor, as the visual editor can sometimes add extra unwanted markup.
bootstrap.css in the source HTML)
You need to make sure that each image is the same height. You can do this by setting an
Aspect ratio in the
Edit Image section of the WordPress Media Library and cropping your images.
Requires: 3.0.1 or higher
Compatible up to: 3.6.1
Last Updated: 2013-10-25
1 of 3 support threads in the last two months have been resolved.
Got something to say? Need help?