Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?php $the_query = new WP_Query( array( 'post_type' => 'cartoon', 'posts_per_page' => '1') ); ?>
- <?php if($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post(); ?>
- <?php $sliderPhoto = get_field("cartoon"); ?>
- <?php if($sliderPhoto) : ?>
- <h3 style="margin-top:20px;" class="widget-title group"><span>La vignetta di Pietro Scuderi</span></h3>
- <!-- <div class="banner-sidebar"><img src="<?php echo $sliderPhoto["url"]; ?>"></div> -->
- <a title="clicca per entrare" target="_blank" href="<?php echo $sliderPhoto["url"]; ?>"><div class="cartoon-sidebar" style="margin-bottom:20px;"><img src="<?php echo $sliderPhoto["url"]; ?>"></div></a>
- <?php endif; ?>
- <?php endwhile; ?>
- <?php endif; ?>
- <?php wp_reset_postdata(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement