CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
PHP Problems
custom field for vimeo
juliane
Permalink to comment
#
April 2010
hi,
how can i create a custom field to display a vimeo video on my wordpress post?
it's custom field because I want it on a specific part of the post that is not on the post content.
can't figure it out. can you please help?
thanks in advance.
TheDoc
Permalink to comment
#
April 2010
If you are simply going to pump out some embed code, you could just add this to your loop:
<?php echo get_post_meta($post->ID, 'vimeo', true); ?>
And create and custom field called "vimeo" and put the embed code in there.
Add a Comment
how can i create a custom field to display a vimeo video on my wordpress post?
it's custom field because I want it on a specific part of the post that is not on the post content.
can't figure it out. can you please help?
thanks in advance.
<?php echo get_post_meta($post->ID, 'vimeo', true); ?>
And create and custom field called "vimeo" and put the embed code in there.