$featured_posts = new WP_Query(array('category__and' => array($category->term_id, $featured_term_id), 'posts_per_page' => -1, 'orderby' => 'date')); ?> <div class="header"> <div class="row"> <div class="medium-8 medium-centered columns text-center"> <h1><?php echo $category->name; ?> </h1> <p><?php echo $category->description; ?> </p> <?php TheOpenStandardSearch::search_form(array('cat' => $category->slug), false); ?> </div> </div> </div> <section class="body topics-page"> <div class="row"> <!-- FEATURED ARTICLES --> <div class="large-5 columns"> <ul class="featured-articles"> <?php $limit = 3; while ($featured_posts->have_posts()) { $featured_posts->the_post(); $primary_category = get_primary_category($post);
$category_posts = new WP_Query(array('cat' => $category->term_id, 'category__not_in' => $featured_term_id, 'posts_per_page' => 6, 'orderby' => 'date')); ?> <div class="header"> <div class="row"> <div class="medium-8 medium-centered columns text-center"> <h1><?php echo $category->name; ?> </h1> <p><?php echo $category->description; ?> </p> <?php TheOpenStandardSearch::search_form(); ?> </div> </div> </div> <section class="row search-results"> </section> <section class="body topics-page"> <div class="row"> <!-- FEATURED ARTICLES --> <div class="large-5 columns"> <ul class="featured-articles"> <?php while ($featured_posts->have_posts()) {
</h1> <?php if (!$category_all && !$category_searched) { ?> <h1>Search Results</h1> <?php } ?> <p class="results-message" <?php if (!$_GET['s']) { ?> style="display: none;"<?php } ?> >Showing results for: <em class="search-query">"<?php echo htmlspecialchars($_GET['s']); ?> "</em></p> <?php TheOpenStandardSearch::search_form($default_search_params); ?> </div> </div> </div> <section class="row search-results"> </section> <?php get_footer();