I am trying to have youtube videos show up the home page of my wordpress website. I am using the Gabfire Magazine theme. I have installed the plugin Viper's Video Quicktags. However before I installed that, I could put the embedded video into a post and it would not show up the home page but instead would show up when the user visited the actual post. So to attempt to rectify that, I installed the Viper Quicktags plugin. Now it has a parse error that shows up and that is on the home page and the actual post. I may not have installed it correctly. My header contained <?php wp_head();?> but my footer did not contain <?php wp_footer();?> so I added it arbitrarily to a point in there. I think that might be where I messed up. Below is the footer code:
<!-- /if you are going to place a google analytics or other track service snippet, pate it here -->
<?php wp_footer();?>
<div id="footer">
<a href="http://www.magazine-themes.com/">WP-Magazine</a> by <a href="http://www.gabfire.com/">Gabfire</a> Brought to you by <a href="http://www.playstation4communtiy.com">Playstation 4</a>, <a href="http://www.ps3-spiele-portal.de/">PS3</a> and <a href="http://www.ubiquityhosting.com">Linux Web Host</a>
</div>
</body></html>
Below is the header code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<title>
<?php bloginfo('name'); ?>
<?php if(is_home()) { ?>
- <?php bloginfo('description'); ?>
<?php } ?>
<?php if(is_single()) { ?>
<?php } ?> <?php wp_title(); ?>
<?php if(is_404()) { ?>
- 404 Error! Page Not Found
<?php } ?>
<?php if(is_search()) { ?>
- Search Results for: <?php echo wp_specialchars($s, 1); ?>
<?php } ?>
</title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
</style>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascript/p7exp.js"></script>
<!--[if lte IE 7]> <style>#menuwrapper, #p7menubar ul a {height: 1%;} a:active {width: auto;} </style> <![endif]-->
<?php if(!is_home() ) { ?> <link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo('template_url'); ?>/print.css" /> <?php } ?>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php wp_head(); ?>
</head>
<body>
<div id="wrapper">
<!-- Header -->
<div id="header">
<!-- Logo -->
<div id="headerleft">
<h1><a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h1>
</div>
<!-- Searchbox and date -->
<div id="headerright">
<script src="<?php bloginfo('template_url'); ?>/javascript/date.js" type="text/javascript"></script>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div>
<!-- Header Navigation -->
<div id="navigation">
<ul id="p7menubar">
<li<?php if(is_home() || is_404() || is_single() || is_category() || is_day() || is_month() || is_year() || is_search() ) { ?> class="current_page_item"<?php } ?>><a href="<?php bloginfo('home'); ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&title_li='); ?>
</ul>
<ul id="feeds">
<li><a href="feed:<?php bloginfo('rss2_url'); ?>">Entries <span class="rss">(RSS)</span></a></li>
<li><a href="feed:<?php bloginfo('comments_rss2_url'); ?>">Comments <span class="rss">(RSS)</span></a></li>
</ul>
<div style="clear:both"></div>
</div>
</div>
<!-- /Header -->
Below is the section of index.php that I need the video to show up on:
<!-- Middle Column -->
<div id="midcolumn">
<h2>Latest News</h2>
<!-- Loop for latest news -->
<?php $oddentry = 'class="gray" '; ?>
<?php query_posts('cat=1,26,35,15,23,27,24,25,13&showposts=5'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<img src="<?php echo get_post_meta($post->ID, "Center Thumbnail", true);?>" />
<div <?php echo $oddentry; ?>>
<div class="midcolumnpost">
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<?php the_excerpt_reloaded(30, '<img><a>', 'content', false, 'More...', true);?>
<div class="details">
<?php the_time('F j, Y'); ?> | <?php comments_popup_link(__('Leave comment'), __('1 Comment'), __('% Comments'));?> | <a href="<?php echo get_permalink(); ?>" title="Read More">Read More</a>
</div>
</div>
</div>
<?php /* Changes every other post to a different class */ $oddentry = ( empty( $oddentry ) ) ? 'class="gray" ' : ''; ?>
<!-- End of Loop for middle column -->
Essentially if you look at the home page of http://www.reelhits.com, the center column is where I want the video to show up. I just want the video and the post title.
Thanks for any help you can provide.