Skip to content

Instantly share code, notes, and snippets.

@domantasg
Created September 22, 2017 10:09
Show Gist options
  • Save domantasg/0e31d45b0b19667480e244be4879a374 to your computer and use it in GitHub Desktop.
Save domantasg/0e31d45b0b19667480e244be4879a374 to your computer and use it in GitHub Desktop.
<?php
$movie_box_art = get_post_meta( $post->ID, 'Box Art', TRUE );
if (!empty($movie_box_art)) { ?>
<div class="movie-poster-box">
<img src="<?php echo $movie_poster ?>" alt="<?php single_post_title(); ?> ">
</div>
<? } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment