Forums

Using Custom Fields (3 posts)

  1. aletheides
    Member
    Posted 1 year ago #

    I am trying to use Custom Fields so I can display a different video for each post like this blog does here: http://www.ebid.ie/apple/cheap-ipod-nano-4th-gen/

    I have set a keyname of "video" and then set the value to be the long video embedding-URL. After that how do I call upon Wordpress to grab this key data and make the video show up?

    Best regards,
    Al

  2. MichaelH
    moderator
    Posted 1 year ago #

  3. aletheides
    Member
    Posted 1 year ago #

    Thanks I have went over those for a while, I tried many things all of which don't seem to work:

    <?php the_meta() get_post_meta($post_id, $key, $single); ?>

    <?php $video_1_value = get_post_meta('video', true); ?>

    <?php $key_1_value = get_post_meta('video', true); ?>

    <?php $meta_values = get_post_meta($video; ?>

    <?php $key="video"; echo get_post_custom_values($video); ?>

    If anyone has the solution to this I would appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Topic