Ready to get started?Download WordPress


get_post_meta works in archives only (1 post)

  1. Salvatore
    Posted 5 years 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); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic