Support
Support » Fixing WordPress » get_post_meta works in archives only
(@salvatore)
15 years, 6 months ago
When I try to output a meta key with get_post_meta, it only gives me the result in archives, and not in home page or post.
code is <?php $key="Demo"; echo get_post_meta($post->ID, $key, true); ?>
<?php $key="Demo"; echo get_post_meta($post->ID, $key, true); ?>