ewels / CPT-Bootstrap-Carousel

WordPress plugin which generates a custom post type for choosing images and content. Outputs Bootstrap Image Carousel (slider) HTML from a shortcode.
http://wordpress.org/plugins/cpt-bootstrap-carousel/
GNU General Public License v2.0
51 stars 36 forks source link

Carousel Items have noproper ID #61

Closed chickahoona closed 9 years ago

chickahoona commented 9 years ago

Carousel Items have an id like 'id="578"' ID identifiers are not allowed to start with a number therefore they don't work when you do something like the following in a style:

578 .carousel-caption {...} /* does not work */

proposal:

In cptbc-frontend.php:109 Change: id="<?php echo $image['post_id']; ?>" to: id="carousel-item-<?php echo $image['post_id']; ?>"