I’ve got the following code to be displayed on ‘blog’ pages (before content
). The featured image and post author display but the custom field doesn’t (but the post thumb and taxonomy do). If I place this code in content.php then it does display
<?php if ( the_post_thumbnail('thumbnail', array('class' => 'alignleft')) ) { the_post_thumbnail(); } ?>
<?php the_author(); ?> from
<?php if( get_post_meta($post->ID, "state", true) ): ?>
<?php echo get_post_meta($post->ID, "state", true); ?>
<?php else: ?>nothing<?php endif; ?>