Somebody shoot me please… Since this is the first theme I developed I didn’t know that I needed a search.php for my form to work! Anyway I created search.php and inserted The Loop, after I did that I’ve copied that file inside my theme and my search form worked like a charm!!
Hope this will help somebody else 🙂
My search.php looks like this:
<?php
/**
* The template for displaying Search Results pages.
*
*
*
*
*/
get_header(); ?>
<div id="blog">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<div class="post">
<h3><a href="https://wordpress.stackexchange.com/questions/83006/<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="entry">
<?php the_post_thumbnail(); ?>
<?php the_content(); ?>
<p class="postmetadata">
<?php _e('Filed under:'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?><br />
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', ' | ', ''); ?>
</p>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<?php posts_nav_link(); ?>
</div>
<?php endif; ?>
</div>