Is this normal? I have custom template called news.php with
<?php /* Template Name: News */ ?>
My custom fields are not showing up for some reason. When I paste the same code in page.pgp it works fine.
<?php $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true); ?>
<img src="/wp-content/uploads/<?php $thumbnail ?>" border="0" alt="" />
- The topic ‘Custom Fields in a template file – not working’ is closed to new replies.