The MU forums have moved to WordPress.org

Custom Fields (2 posts)

  1. peiqinglong
    Member
    Posted 16 years ago #

    I've been having hell trying to figure this out. I'm trying to code it so that when no Custom Field is used, nothing related to Custom Field appears.

    This is what I'm using to no avail:

    <?php if (function_exists('get_post_meta')) echo "<p><img src=\""; bloginfo('stylesheet_directory'); echo "/img/video_icon.gif\" alt=\"Video\" /> <a href=\""; echo get_post_meta($post->ID, "Video", true); echo "\" title=\""; echo get_post_meta($post->ID, "Video", true); echo "\">Watch The Video</a></p>"; ?>

    Thanks for any help!

  2. peiqinglong
    Member
    Posted 16 years ago #

    Bump

About this Topic

  • Started 16 years ago by peiqinglong
  • Latest reply from peiqinglong