Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $myfield= get_post_meta($post->ID, 'short', true);
- echo do_shortcode($myfield);
- //Checking if anything exists for the key short
- if ($short) { ?>
- <?php echo $short; ?>
- <?php } //if there is nothing for short then display
- else { ?>
- <?php the_post_thumbnail(); ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement