Skip to main content
Tweeted twitter.com/#!/StackWordPress/status/474713865570099200
added additional question
Source Link
Stephen S.
  • 1k
  • 2
  • 13
  • 21

In a recently personal theme project for publishing travel posts, I desired a slider-style image gallery rather than the standard column/list-style one WordPress uses out of the box.

I like the look-and-feel of the Bootstrap Carousel, so my challenge was this:

Is it possible to mash up the WordPress Gallery Shortcode with Bootstrap's Carousel?

I've given my solution below, but would be interested to know what other people might suggest to improve the code and make it work better.

In a recently personal theme project for publishing travel posts, I desired a slider-style image gallery rather than the standard column/list-style one WordPress uses out of the box.

I like the look-and-feel of the Bootstrap Carousel, so my challenge was this:

Is it possible to mash up the WordPress Gallery Shortcode with Bootstrap's Carousel?

In a recently personal theme project for publishing travel posts, I desired a slider-style image gallery rather than the standard column/list-style one WordPress uses out of the box.

I like the look-and-feel of the Bootstrap Carousel, so my challenge was this:

Is it possible to mash up the WordPress Gallery Shortcode with Bootstrap's Carousel?

I've given my solution below, but would be interested to know what other people might suggest to improve the code and make it work better.

Source Link
Stephen S.
  • 1k
  • 2
  • 13
  • 21

Rewriting WordPress Gallery Shortcode with Bootstrap Carousel

In a recently personal theme project for publishing travel posts, I desired a slider-style image gallery rather than the standard column/list-style one WordPress uses out of the box.

I like the look-and-feel of the Bootstrap Carousel, so my challenge was this:

Is it possible to mash up the WordPress Gallery Shortcode with Bootstrap's Carousel?