<?php while (have_posts()) { the_post(); ?> <?php get_template_part('content', get_post_format()); ?> <?php } ?> <?php pinktouch_content_nav(); ?> <?php } else { ?> <div class="page-header"> <h1 class="page-title"><?php _e('Nothing Found.', 'pinktouch'); ?> </h1> </div> <div class="hentry error404 clearfix">
<div class="page-header"> <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'pinktouch' ), '<span>' . get_search_query() . '</span>' ); ?></h1> </div> <?php endif; ?> <?php rewind_posts(); ?> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> <?php pinktouch_content_nav(); ?> <?php else : ?> <div class="page-header"> <h1 class="page-title"><?php _e( 'Nothing Found.', 'pinktouch' ); ?></h1> </div> <div class="hentry error404 clearfix"> <div class="content"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'pinktouch' ); ?></p> <?php get_search_form(); ?> </div>