Displaying the Featured Posts on the Frontend

<?php $args = array( 'posts_per_page' => 5, 'meta_key' => 'meta-checkbox', 'meta_value' => 'yes' ); $featured = new WP_Query($args); if ($featured->have_posts()): while($featured->have_posts()): $featured->the_post(); ?> <h3><a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a></h3> <p class="details">By <a href="<?php the_author_posts() ?>"><?php the_author(); ?> </a> / On <?php echo get_the_date('F j, Y'); ?> / In <?php the_category(', '); ?></p> <?php if (has_post_thumbnail()) : ?> <figure> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> </figure> <p ><?php the_excerpt();?></p> <?php endif; endwhile; else: endif; ?>
Recent Posts
Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.