Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created April 2, 2012 15:44
Show Gist options
  • Select an option

  • Save billerickson/2284504 to your computer and use it in GitHub Desktop.

Select an option

Save billerickson/2284504 to your computer and use it in GitHub Desktop.
<?php
/**
* Single Post
*
* @package BE_Genesis_Child
* @since 1.0.0
* @link https://github.com/billerickson/BE-Genesis-Child
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
*
*/
/**
* Add video to top of page
*
*/
function be_single_video() {
global $post;
$video = get_post_meta( $post->ID, 'be_video', true );
if( !empty( $video ) )
echo '<div id="video-area"><div class="wrap">' . $video . '</div></div>';
}
add_action( 'genesis_before_content_sidebar_wrap', 'be_single_video' );
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment