Created
January 2, 2015 19:00
-
-
Save jhouedanou/e417078f31414037390f to your computer and use it in GitHub Desktop.
carousel
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"> | |
<?php | |
wp_reset_postdata(); | |
query_posts('cat=9&showposts=20'); ?> | |
<?php if ( have_posts() ) : ?> | |
<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 | |
while (have_posts()) : the_post();?> | |
<li id="post-<?php the_ID(); ?>" class="ym-gl"> | |
<?php | |
the_post_thumbnail('full', array('class' => 'flexible')); | |
?> | |
</li> | |
<?php | |
endwhile; ?> | |
<?php | |
endif; | |
wp_reset_postdata(); | |
?> | |
</ul><!--fin du slider--> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment