function get_the_pillar_posts() { $query = get_search_query(); $pillars = get_pillars(); foreach ($pillars as $pillar) { if (stripos($pillar->name, $query) !== false) { $posts = get_stories_with_pillar($pillar); } } return $posts ? $posts : false; }
//echo get_abstract_text($promoted->ID) ?> </p> </div></a> </div> --> <div id="filters" class="row"> <div class="col-md-6"> <div class="form-horizontal"> <div class="form-group"> <label for="pillars" class="col-sm-2 control-label">Pillar:</label> <div class="col-sm-10"> <select id="pillar" name="pillars" class="filters-select button-group form-control input-sm" data-filter-group="pillar"> <option value="*">Show all</option> <?php foreach (get_pillars() as $pillar) { ?> <option value=".<?php echo $pillar->slug; ?> "><?php echo $pillar->name; ?> </option> <?php } ?> </select> </div> </div> </div>