Can someone please check MasterNoun's code? I think there may be a simple error in it, but I cannot see what's wrong (I'm a noob with php).
// remove the standard search loop
function remove_search_loop() {
remove_action('thematic_searchloop', 'thematic_search_loop');
}
add_action('wp', 'remove_search_loop');
// create your own search loop
function my_search_loop() {
// Your content goes in here
global $post;
/* Count the number of posts so we can insert a widgetized area */ $count = 1;
while ( have_posts() ) : the_post() ?>
<div id="post-<?php the_ID() ?>" class="<?php
thematic_post_class();
if(function_exists('p75GetVideo')){
if(p75GetVideo($post->ID)){
echo " video";
}
}
?>">
<div class="entry-content">
<?php childtheme_post_header() ?>
<a>"><span class="slide-title"><?php echo the_title(); ?></span>
<img class="thumbnail" src="<?php if(get_post_meta($post->ID, 'thumbnail', $single = true)){echo get_post_meta($post->ID, 'thumbnail', $single = true);} else{bloginfo('url'); echo "/wp-content/themes/gallery/images/thumbnail-default.jpg";} ?>" width="125" height="125" alt="<?php echo the_title() ?>" /></a>
</div>
</div><!-- .post -->
<?php comments_template();
if ($count==$thm_insert_position) {
get_sidebar('index-insert');
}
$count = $count + 1;
endwhile;
}
add_action('thematic_searchloop', 'my_search_loop');