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
2,304
Replies
10
Views
5,265
Replies
12
Views
13,406
Replies
13
Views
6,876
Latest threads
Replies
1
Views
86
Replies
1
Views
176
Replies
4
Views
385
Replies
11
Views
526
Replies
2
Views
229
Recommended threads
Replies
32
Views
16,975
Replies
0
Views
3,264
Replies
14
Views
9,332
Similar threads
Replies
2
Views
1,336
Replies
3
Views
2,369

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