Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Tubepress Search Results In Place Of Wp Search Results


  • Please log in to reply
1 reply to this topic

#1 jdkirk

jdkirk

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 03 May 2013 - 11:31 AM

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&rsquo;t find what you&rsquo;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('&laquo; '.__('Older posts','gamepress')) ?></div> 
				<div class="alignright"><?php previous_posts_link(__('Newer posts','gamepress').' &raquo;') ?></div>
			</div>
		<?php endif; ?>
	</div>
	<!-- END CONTENT -->
		
	<?php get_sidebar(); ?>

<?php get_footer(); ?>


#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 04 May 2013 - 10:58 PM

Hi JDKirk,

 

Unfortunately, this level of customization is beyond the scope of what we are able to assist you with.

 

Again, sorry and if you have any other questions, please feel free to post them.

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!