Search Results



I've placed search bar on but on results page I want to appear posts with thumbnail like homepage.
I use this code:

<form role="search" method="get" id="search-ff" action="<?php echo home_url( '/' ); ?>">
<input type="text" name="s" id="s" <?php if(is_search()) { ?>value="<?php the_search_query(); ?>" <?php } else { ?>value="Search:" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"<?php } ?> /><br />
<?php $query_types = get_query_var('post_type'); ?>


Are you using some sort of content management system?


Yes it looks like the OP is using Wordpress




That's kind-of important information!

I've moved this to the WordPress forum.


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.