SnedekerDesignz
says
I have, for example, 3 custom fields (download, screenshots, trailer) but not all my posts have a trailer so I leave that blank, but how do I make it so it does not show up (trailer button)
thx
82 posts
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 5-6 years
- Author was Featured
- Exclusive Author
- Author had a File in an Envato Bundle
- Item was Featured
- Referred between 200 and 499 users
- Bought between 50 and 99 items
mikemcalister
says
Something like this should work. You have lots of WP questions, maybe you should hit up the WP forums for that kind of support.
<?php if ( get_post_meta($post?>ID, "trailer", true) ) { ?>
<p>Trailer:</p>
<?php echo get_post_meta($post?>ID, "trailer", true); ?>
<?php } ?>
SnedekerDesignz
says
Ok thanks a lot! I’d sign up, but I was in a hurry and I hardly ever get forum activate emails.
