Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $argsb = array('posts_per_page' => 3, 'post_status' => 'publish');?>
- <?php $blog = new WP_Query($argsb); if ( $blog->have_posts() ):?>
- <section class="blog-slider slider">
- <div class="flexslider">
- <ul class="slides">
- <li class="slide">
- <?php while ( $blog->have_posts() ) : $blog->the_post(); $count++;?>
- <article class="blog-post-slide<?php if ( 0 == $count%2 ) {echo' middle-blog-slide';} ?>">
- <?php if ( has_post_thumbnail() ) {?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><div class="blog-slide-image"><?php the_post_thumbnail('blog-slide');?></div></a>
- <?php } ?>
- <?php the_title();?>
- </article>
- <?php endwhile; wp_reset_postdata();?>
- </li>
- </ul>
- </div>
- </section>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement