/ Published in: PHP
Expand |
Embed | Plain Text
<?php query_posts('posts_per_page=6'); if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class('post-item') ?> > <div class="post-content"> <header> <h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> </header> <p><?php the_excerpt() ?></p> <footer class="action"> <?php while ( $billboard_metabox->have_fields_and_multi('links') ) { ?> <a href="<?php $billboard_metabox->the_value('link'); ?>" title="<?php $billboard_metabox->the_value('title'); ?>">» <?php $billboard_metabox->the_value('title'); ?></a> <?php } ?> </footer> </div> </article> <?php endwhile; else : ?> <?php endif; wp_reset_query(); ?>
You need to login to post a comment.
