This search.php shows all the results from a said search however, doesn't include the title, The Search Results For...... and search query amount; or even the no searches found and prints the searchform.
<?php get_header(); ?>
<?php if ( have_posts() ) : ?>
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'nothing' ), '' . get_search_query() . '' ); ?></h1>
<!--custom area-->
<ul id="post-list">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
$featured = get_post_meta($post->ID,'_thumbnail_id',true);
$attachments = get_children( 'post_type=attachment&orderby=menu_order&exclude='.$featured.'&post_mime_type=image&post_parent='.$post->ID );
$vimeo = get_post_meta($post->ID, 'rw_post-vimeo',true);?>
<li class="post">
<span class="entry-published">
<time datetime="<?php the_time('Y-m-d')?>"><?php the_time('F jS, Y') ?></time>
<!--Start Single Image-->
<?php get_template_part( 'includes/inc-image' ); ?>
<?php endif; ?>
<!--End Single Image-->
<!--Start Rest Of Post Content-->
<?php get_template_part( 'includes/inc-detail' ); ?>
<?php endwhile; endif; ?>
<section id="pagination">
<?php wp_pagenavi(); ?>
</section>
<!--End Rest Of Post Content-->
</li>
</ul>
<!-- end of custom area -->
<?php else : ?>
<h2><?php _e( 'Nothing Found', 'nothing' ); ?></h2>
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
<?php get_footer(); ?>
Interesting though the posts in their li tag appear witin the opening
<h1 class="page-title">
So i assume its a statement issue but cannot figure it out :(
Any ideas?