Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
upcoming list
<?php
global $am_option;
?>
<div class="post">
<h2 class="home_title">UPCOMING:</h2>
<div class="box">
<div class="holder">
<div class="frame">
<?php global $custom_metabox; ?>
<?php query_posts('post_type=events&showposts=3'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="article">
<strong class="date"><?php $custom_metabox2->the_value('date'); ?></strong>
<span class="text-blue"><a href="<?php $custom_metabox2->the_value('links'); ?>" rel="bookmark" target="_blank" ><?php the_title(); ?></a></span>
<span><?php $custom_metabox2->the_value('location'); ?></span>
</div>
<?php endwhile; ?>
<?php endif; wp_reset_query(); ?>
<a href="<?php echo get_option('home'); ?>/events/" class="more">MORE...</a>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment