How to query value of custom meta box (1 post)

  1. imoddesign
    Posted 2 years ago #

    Hi, all i create custom meta box in post, for add youtube id, but when i need to get value of each post, it show same value.

    I get metavalue
    $video_id = get_post_meta(get_the_ID(), 'cs_mb_video', true);

    <img src="http://img.youtube.com/vi/<?php echo $video_id; ?>/0.jpg" width="220" height="145" />

Topic Closed

This topic has been closed to new replies.

About this Topic