On my demo website i would like to show some custom fields on posts of specific custom post type. And if possible only when they have a filled in value. Demo site: http://www.jsfaber.nl/gibson-eb-2014-120th-anniversary/
What i have so far in single.php is:
<p> Auteur: <?php echo get_post_meta( $post->ID, 'dublin_core_author', true); ?><br> Contributor: <?php echo get_post_meta( $post->ID, 'dublin_core_contributor', true); ?><br> </p>
but this is now shown on alle the posts in the website instead of only on guitar related posts. Can someone please help me?