Display Custom Post Field

Home Forums Pro Version Display Custom Post Field

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5701
    snikay
    Participant

    Hi Dinesh,

    probably nothing big, but again i’m trying to display the following;

    Score stored in a custom post field:
    <?php echo get_post_meta($post->ID, 'epicredvote', true ); ?>

    I think i have to first initialize this somehow?

    #5708
    Masonry Guy
    Keymaster

    Please use like this. Change $post->ID to get_the_ID();

    <?php echo get_post_meta(get_the_ID(), 'epicredvote', true ); ?>

    Thanks

    #5710
    snikay
    Participant

    This works, thanks! 🙂
    I’m still too noobish -.-
    [can be closed – thanks!] 😀

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Display Custom Post Field’ is closed to new replies.