Posting Youtube videos to my website or blog automatically?

dreck

New member
Registered
Joined
Feb 11, 2014
Messages
10
Points
0
Have you succeeded in posting Youtube videos to your website or blog automatically?
I mean wordpress blog or customized codes.

Is it possible to do that and what are the best ways to solve this?
 

Hassan

Well-known member
Registered
Joined
Nov 11, 2014
Messages
433
Points
0
There are two methods

1: The Simplest: If you do not need to embed the video you can setup blogging by e-mail and then get your users to click on the 'Send this video by email' option displayed on each YouTube video.

Beware, all posts sent to your blog-by-email e-mail address will be posted!!

2: More In-depth & More Secure: If you require embeded videos. Create a PHP page on your site that frames YouTube, then reads the value of the embeded video text box on each YouTube video and then inserts the post into your blog.

Resources:

Inserting Posts via PHP
http://codex.wordpress.org/Function_Reference/wp_insert_post

Setting Up blog-by-Email
http://codex.wordpress.org/Blog_by_Email

Good luck!
 

NickTheMusketeer

Active member
Registered
Joined
Jan 18, 2015
Messages
80
Points
0
There is no need for PHP code in order to embed a YouTube video. You can simply follow the tutorial below for customised code (embed on your website using HTML code)

1. Find a YouTube video (e.g. https://www.youtube.com/watch?v=sTGxOqp3qB8)
2. Click Share step1.png
3. Click Embed, tweak the options and copy the iFrame code.
step2.png
4. Paste the iFrame code in the correct place of your HTML file and the video will now be embedded on your site.
 
Latest Threads
Replies
1
Views
23
Replies
0
Views
175
Replies
1
Views
37
Replies
2
Views
81
Recommended Threads
Replies
15
Views
7,704
Replies
0
Views
2,523
Replies
5
Views
3,296
Similar Threads

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top