echo $promoted->post_title; ?> </h2> <p class='abstract'><?php echo get_abstract_text($promoted->ID); ?> </p> </div></a> </div> <div class='spacer'></div> <?php } ?> <?php foreach (get_stories_with_pillar($pillar) as $post) { setup_postdata($post); ?> <div class='story-tile'> <div class='tile-background' style='background-image:url("<?php echo get_story_featured_image_url($post->ID, true); ?> ");' ></div> <div class='tile-bottom'></div> <div class='tile-title-holder'> <p><a href="<?php the_permalink(); ?> "><?php the_title();
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; }