• Ok, this is gonna be kinda hard for me to explain b/c im not american…

    so, I download a theme (http://www.zoomstart.com/videographer-wordpress-theme/) this is a youtube theme where we can post our videos… The theme has a custom field where we right the key as vids and value as the youtube video ID…. so the video thumbail’s going to appear by the posts title… its pretty neat…

    ex: key=vids value=XtKJLUddt90

    But the thing is i cant use my custom field because I post my videos on another page (not on the writting page http://yourblog/wp-admin/post-new.php) so is there a way, like a php code or something that i could wrrite at the end of my posts so it would get the key and value?? something like:

    <?php $vids = get_post_meta('youtubeid', 'vids'); ?>

    ps.: the php code on the templeta that gets the key and value is:

    <div class="paneleft">
    <?php $vids = get_post_meta($post->ID, 'vids', true); ?>
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="http://img.youtube.com/vi/<?php echo($vids) ?>/2.jpg" alt="<?php the_title(); ?>" width="130px" height="97px" /></a>
    </div>

    sorry if u did not understood me… but at least i tried!!

    Thank You so much

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Fields’ is closed to new replies.