Display a youtube link in WP post

This entry is part 1 of 2 in the series Wordpress

In a WordPress post, you might have a custom field which is a Youtube link and as this youtube link is just part of the content, you might want to display it directly in the post.

This is called embedded content and in WordPress, it provides a function called wp_oembed_get:

<?php $embed_code = wp_oembed_get( $url, $args );   ?>

To display this youtube video in the post, you can save this field in wp_postmeta table with the meta_key in the table as youtube_link.

The code is as shown below and you could put it at the end of functions.php found in the WordPress theme.

The phenomenal growth of live game broadcast

Twitch is one of those companies that achieved a $1 billion valuation in a very short time.  It was sold to Amazon late last year.

Before it was sold, the news had it that Google or Youtube was putting $1 billion into buying it.  But as it it turned out, it was Amazon that made a successful bid for it.

Game viewing is growing phenomenally and it still is.  If you have a Sony PS4, you can play a game and easily broadcast your gameplays live to either Twitch or Stream.  This capability was only added in the newer PS4 and XBoxOne.

So it was barely a year where live broadcasting was available in the 2 main consoles and before you know it, it is already now owned by Amazon.

In Twitch, you can now see many professional players who play games for a living.  Some have loyal followings and they are receiving different types of sponsorship.

I have even seen some players that are sponsored by some 24 hours eateries.  So for them, the tagline is play but don’t forget to eat.