<hr> <?php if (have_posts()) { ?> <div class="search-result"> <?php while (have_posts()) { the_post(); global $post; ?> <div class="search-result-post"> <div class="tags clearfix"> <?php vw_render_categories('label-small'); ?> </div> <h2 class="title"><a href="<?php the_permalink(); ?> " title="<?php printf(esc_attr__('Permalink to %s', 'envirra'), the_title_attribute('echo=0')); ?> " rel="bookmark"><?php the_title(); ?> </a></h2> <?php
<?php while (have_posts()) { the_post(); ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <div class="tags clearfix"> <?php vw_render_categories(''); ?> </div> <h1 class="post-title title title-large entry-title"><?php the_title(); ?> </h1> <?php if (has_excerpt()) { ?> <h2 class="post-subtitle subtitle"><?php echo get_the_excerpt(); ?> </h2>