Is there a reason why psdtv_id isn't being shown in the code below? The output is blank.
<?php get_header();?>
<section id="content">
<h2><?php the_title(); ?></h2>
<?php
if (have_posts()) : while (have_posts()) : the_post();
$custom = get_post_custom($post->ID);
$psdtv_id = $custom["psdtv_id"][0];
?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<? $psdtv_id ?>
</article>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<?=$psdtv_id ?>or<?php echo $psdtv_id ?>but the question is pure PHP and is off topic for this forum per the faq – s_ha_dum Jan 14 at 5:19<?, that can be turned off. Always use<?php. – toscho♦ Jan 14 at 5:35