Created
January 2, 2015 20:41
-
-
Save jhouedanou/c555c3bcff02ab5a0e73 to your computer and use it in GitHub Desktop.
Carousel v2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="wolf" class="ym-g80 ym-gr"> | |
<ul id="treb" class="cycle-slideshow" | |
data-cycle-slides="li" | |
data-cycle-fx=carousel | |
data-cycle-timeout=1000 | |
data-cycle-pause-on-hover="true"> | |
<?php | |
$the_query = new WP_Query('cat=9'); ?> | |
<?php if ( $the_query->have_posts() ) : ?> | |
<!-- la boucle --> | |
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> | |
<li id="post-<?php the_ID(); ?>" class="ym-gl"> | |
<?php | |
the_post_thumbnail('full', array('class' => 'flexible')); | |
?> | |
</li> | |
<?php endwhile; ?> | |
<!-- / la boucle --> | |
<?php wp_reset_postdata(); ?> | |
<?php else : ?> | |
<p><?php _e( 'Uploadez des images svp.' ); ?></p> | |
<?php endif; ?> | |
</ul><!--fin du slider--> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment