function birdfield_has_news_posts() { return !is_paged() && (bool) birdfield_get_news_posts(); }
/* * The template for displaying news content */ ?> <section id="news"> <div class="container"> <h2><?php _e('NEWS', 'birdfield'); ?> </h2> <ul class="article"> <?php $birdfield_news_posts = birdfield_get_news_posts(); foreach ((array) $birdfield_news_posts as $order => $post) { setup_postdata($post); ?> <li id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <a href="<?php the_permalink(); ?> " title="<?php