<!-- Slider -->
        <div id="main-slider" class="flexslider">
            <ul class="slides">


<?php 
$args = array('post_type' => 'slide', 'posts_per_page' => 5);
$query = new WP_Query($args);
if ($query->have_posts()) {
    while ($query->have_posts()) {
        $query->the_post();
        ?>
              
              <li>              
<img src="<?php 
        slideImage('image_slide');
        ?>
" alt="">

                <!--<img src="<?php 
        //echo get_stylesheet_directory_uri ();
        ?>
/img/slides/1.jpg" alt="" />-->
                
                <div class="flex-caption">
                    <h3><?php 
        the_title();
        ?>
</h3> 
					<p><?php 
        the_field('image_description');
Пример #2
0
					<li class="item-thumbs col-lg-3 design" data-id="id-0" data-type="<?php 
        the_field('type');
        ?>
">
						<!-- Fancybox - Gallery Enabled - Title - Full Image -->
						<a class="hover-wrap fancybox" data-fancybox-group="gallery" title="Portfolio name" href="<?php 
        slideImage('image');
        ?>
">
						<span class="overlay-img"></span>
						<span class="overlay-img-thumb font-icon-plus"></span>
						</a>
						<!-- Thumb Image and Description -->

						<img src="<?php 
        slideImage('image');
        ?>
" alt="<?php 
        the_field('description');
        ?>
">
						</li>

<?php 
    }
}
wp_reset_postdata();
?>