Last active
September 20, 2016 14:04
-
-
Save Lysindr/dcfd56f0eab0e62c291c362694210634 to your computer and use it in GitHub Desktop.
Post slider
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 class="slider-wrapper"> | |
<!-- Выводим посты из категории Technology в слайдер --> | |
<?php | |
$slide = array('category_name'=>'Business', 'posts_per_page'=>-1); | |
query_posts($slide); | |
while ( have_posts() ) : the_post(); | |
?> | |
<div class="slide"> | |
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> | |
<div class="description"><?php the_content(); ?></div> | |
</div> | |
<?php endwhile; wp_reset_query(); ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment