Jump to content

Want to remove player from a wordpress template in single post


Shisana

Recommended Posts

Hello

I 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 by QuickOldCar
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.