Custom Field Problem
-
I am trying to add a custom field to show a video post, but am having a problem.
The original embed code is:
<object width="583" height="328"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="https://www.openfilm.com/flvplayer5.swf?link=https://www.openfilm.com/player/video/?&video_id=21440</strong></em>&lang=en_us&sort_id=1&color1=0xa2a2a2&color2=0x3e3e3e"/><embed src="https://www.openfilm.com/flvplayer5.swf?link=https://www.openfilm.com/player/video/?&video_id=21440</strong></em>&lang=en_us&sort_id=1&color1=0xa2a2a2&color2=0x3e3e3e" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="583" height="328"></embed></object>
For the custom field, I am using Video and am then using the following code:
<?php $image = get_post_meta($post->ID, 'Video', true); ?>
I have then replaced 21440 with
<?php echo $video; ?>
All I am getting though is the video screen as though I had added a non-existent video ID, though I do have the custom field set up on my test post.
You can see what I mean here.
- The topic ‘Custom Field Problem’ is closed to new replies.