Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Created January 15, 2013 22:14
Show Gist options
  • Select an option

  • Save billrobbins/4542626 to your computer and use it in GitHub Desktop.

Select an option

Save billrobbins/4542626 to your computer and use it in GitHub Desktop.
<?php if(get_post_meta($post->ID, "video_embed", $single = true) != ""){ ?>
<div class="video"><?php echo get_post_meta($post->ID, "video_embed", TRUE); ?></div>
<?php } else { ?>
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_post_thumbnail('primary', array('class' => 'shadow')); ?></a>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment