Shisana Posted January 2, 2016 Share Posted January 2, 2016 (edited) HelloI have wordpress tube template, i want to remove video player in single page and want to use normal post insted, could anyone help me for that.my singlepage php code is <?php get_header(); ?> <div class="wrap grid rStatic player"> <div class="mainw"> <?php setPostViews(get_the_ID()); ?> <?php while ( have_posts() ) : the_post(); ?> <div class="main l200 r300"> <?php $player = get_option('mtn_player'); if ($player == "top") { include (TEMPLATEPATH . '/inc/layout/player2.php'); } elseif ($player == "bottom") { include (TEMPLATEPATH . '/inc/layout/player1.php'); } else { get_template_part( 'inc/layout/player1', get_post_format() ); } if(get_option('mtn_related_title')){ $title = get_option('mtn_related_title'); } else { $title = __('Video Suggestions', 'bestia'); } ?> </div> </div> <?php endwhile; // end of the loop. ?> <div class="main l200" id="suggestions"> <h2><?php echo $title; ?></h2> <?php include (TEMPLATEPATH . '/inc/related-videos.php'); echo '</div></div>'; ?> <div class="right300 rZone"><div class="holder"> <?php if (get_option('mtn_adsright') <> '') { echo stripslashes(get_option('mtn_adsright')); } else { } echo '</div></div>'; get_template_part( 'inc/sidebar/sidebar-video', get_post_format() ); echo '</div></div>'; get_footer(); ?> Edited January 2, 2016 by QuickOldCar Quote Link to comment https://forums.phpfreaks.com/topic/300098-want-to-remove-player-from-a-wordpress-template-in-single-post/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.