Posting Youtube videos to my website or blog automatically?

dreck

New member
Joined
Feb 11, 2014
Messages
17
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

New member
Joined
Nov 11, 2014
Messages
706
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
[URLnf="http://codex.wordpress.org/Function_Reference/wp_insert_post"]http://codex.wordpress.org/Function_Reference/wp_insert_post[/URLnf]

Setting Up blog-by-Email
[URLnf="http://codex.wordpress.org/Blog_by_Email"]http://codex.wordpress.org/Blog_by_Email[/URLnf]

Good luck!
 

NickTheMusketeer

New member
Joined
Jan 18, 2015
Messages
135
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. [URLnf="https://www.youtube.com/watch?v=sTGxOqp3qB8"]https://www.youtube.com/watch?v=sTGxOqp3qB8[/URLnf])
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.
 
Older threads
Replies
0
Views
1,968
Replies
10
Views
4,704
Replies
12
Views
9,918
Replies
13
Views
6,115
Latest threads
Replies
2
Views
31
Replies
3
Views
23
Replies
1
Views
43
Replies
2
Views
30
Replies
6
Views
45
Recommended threads

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

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