Skip to content

Instantly share code, notes, and snippets.

Created Oct 1, 2015
What would you like to do?
<?php {
$rotator = new WP_Query( 'tag=main_rotating' );
} ?>
<div class="slider-wrapper theme-default main-image">
<div id="slider" class="nivoSlider">
<?php if( $rotator->have_posts() ) : while( $rotator->have_posts() ) : $rotator->the_post(); ?>
<a href="<?php echo esc_url( get_permalink() ); ?>">
<img src="<?php echo get_post_meta( get_the_ID(), 'large-meta-box-text', true ); ?>">
<?php endwhile; endif; wp_reset_postdata(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment