Beispiel #1
0
<?php

if (get_field('project_featured_image')) {
    ?>

<section class="section-slides">
    <div class="">
        <ul class="slides">
            <li class="slide">

                <?php 
    // ACF Image
    // http://www.advancedcustomfields.com/resources/image/
    $image = get_the_field('project_featured_image');
    $size = 'large';
    // (thumbnail, medium, large, full or custom size)
    if ($image) {
        echo wp_get_attachment_image($image, $size);
    }
    ?>

                <article class="slide-text clearfix">

                    <h2 class="slide-title container">
                        <?php 
    $the_tax = get_taxonomy(get_query_var('taxonomy'));
    echo $the_tax->labels->name;
    ?>
                    </h2><!-- .slide_title -->

                    <p class="slide-description container">
    the_title();
    ?>
</h1>
		</header><!-- .entry-header-->
        
		<div class="prog">
			<?php 
    echo apply_filters('the_title', get_the_field('1o_dia'));
    ?>
		</div>
		<div class="prog">
			<?php 
    echo apply_filters('the_title', get_the_field('2o_dia'));
    ?>
		</div>
		<div class="prog">
			<?php 
    echo apply_filters('the_title', get_the_field('3o_dia'));
    ?>
		</div>
				
		<footer class="entry-meta">
		</footer><!-- .entry-meta -->
	</article><!-- #post -->

<?php 
}
?>
</div><!-- #content -->
<?php 
get_footer();