Hi, I'm trying to get the native search bar in my WP theme to output the tubepress search results. So no page/post results would show up but rather the youtube search of the search term that would then make gallery of search term on my site.
Site is http://winfailvideos.com/
theme Gamepress
pretty sure I need to modify the search.php file of my theme below, but not sure exactly how. Any help would be appreciated.
<?php get_header(); ?>
<!-- CONTENT -->
<div id="content">
<?php if ( have_posts() ) : ?>
<section id="main-content" role="main">
<header>
<h2>
<?php printf( __( 'Search Results for: %s', 'gamepress' ), '<span>' . get_search_query() . '</span>' ); ?>
</h2>
</header>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post();
if (of_get_option('gamepress_hp_layout') == '2'):
get_template_part('content','bigthumb');
elseif (of_get_option('gamepress_hp_layout') == '3') :
get_template_part('content', 'smallthumb');
else :
get_template_part('content');
endif;
endwhile; ?>
<?php else : ?>
<section id="main-content" role="main" class="full-height">
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'gamepress' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'It seems we can’t find what you’re looking for. Try a different search.', 'gamepress' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</section>
<?php
if(function_exists('wp_pagenavi')) :
wp_pagenavi();
else :
?>
<div class="wp-pagenavi">
<div class="alignleft"><?php next_posts_link('« '.__('Older posts','gamepress')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer posts','gamepress').' »') ?></div>
</div>
<?php endif; ?>
</div>
<!-- END CONTENT -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>








