Adapt This Code For Videos?
-
<div class="homepagethumb"> <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a> <?php else: ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php bloginfo('template_directory'); ?>/images/default_thumbnail.gif" alt="<?php the_title(); ?>" /></a> <?php endif; ?> </div>
Is it possible to adapt this code to allow <EMBED> So I can embed Youtube/Vimeo videos?
- The topic ‘Adapt This Code For Videos?’ is closed to new replies.