Skip to content

Instantly share code, notes, and snippets.

Created October 1, 2015 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8272961ce48dfe28f1bf to your computer and use it in GitHub Desktop.
Save anonymous/8272961ce48dfe28f1bf to your computer and use it in GitHub Desktop.
<?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 ); ?>">
</a>
<?php endwhile; endif; wp_reset_postdata(); ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment