Search Results

html
scripts
php

#1

I've placed search bar on vevegames.com 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'); ?>
  
</form>

#2

Are you using some sort of content management system?


#3

Yes it looks like the OP is using Wordpress


#4

Yes.


#5

That's kind-of important information!

I've moved this to the WordPress forum.


#6

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