Advertisement
Guest User

wordpress custom field conditional

a guest
Sep 11th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. <?php if ( get_post_meta($post->ID, 'ecpt_quote', true) ) : ?>
  2. <?php echo '<h3>Testimonial</h3><p>' . get_post_meta($post->ID, 'ecpt_quote', true) . '</p>'; ?>
  3. <?php else : ?>
  4. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement