In the example, videourlcustom is the name of the custom field which contains the URL for what you want to embed.
If you want to put it somewhere else, just change $post->ID to the ID of the post you want to query – for example, if you were going to place it in a sidebar widget. In this example, it should be inside the loop.
I hope this helps!
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘OEmbed and Custom FIeld’ is closed to new replies.