Advertisement
shakil97bd

Display Custom Meta Box Field Only If Value is Present

Mar 17th, 2017
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. ***** Display Custom Meta Box Field Only If Value is Present *****
  2.  
  3.  
  4. <?php if ( get_post_meta(get_the_ID(), '__specspicture__', 'true') ) : ?>
  5.  
  6.  Your code here
  7.  
  8. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement