Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

YouTube動画からWordPress投稿を自動作成する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

YouTube動画からWordPress投稿を自動作成したいですか?

多くのYouTube公開者は、WordPressにYouTube動画を自動投稿したいと考えています。幸いなことに、YouTubeからWordPressサイトに自動投稿する方法は複数あります。

この投稿では、YouTube動画からWordPress投稿を簡単に作成する方法をご紹介します。

Easily auto-post YouTube videos to WordPress post

なぜWordPressにYouTube動画を自動投稿するのか?

動画はインターネット上で最も魅力的なコンテンツの一つです。ユーザーのエンゲージメントとサイト滞在時間は、SEOランキングの重要な要素です。

WordPressでは、投稿やページにYouTube動画を埋め込むのがとても簡単です。

ただし、その都度手動で行う必要がある。これは、YouTube動画に付随する詳細な記事を作成しているYouTubeチャンネルには最適です。

一方、YouTubeの公開者の中には、単に最新の動画をサイトに自動投稿したい人もいるだろう。

そこで、WordPressサイトにYouTube動画を自動投稿する簡単な方法を2つご紹介しよう:

方法1:IFTTTを使ってYouTube動画からWordPressの新規投稿を作成する。

IFTTTは、ユーザーが人気のアプリを自動化できるオンラインツールだ。IFTTTは「if this then that」の略。指定した条件に基づいて特定のタスクを自動化できる強力なサービスだ。例えば

新規動画がYouTubeにアップロードさ れました
新規投稿をWordPressで作成します

上の例はアプレットと呼ばれるものです。多くのウェブベースのサービス、ソーシャル・メディア・プラットフォーム、スマート端末、そしてWordPressサイト用に作成することができます。

IFTTTでWordPressとソーシャルメディアを自動化する方法の投稿をご覧ください。

IFTTTからWordPressにYouTube動画を投稿するには、まずIFTTTのサイトにアクセスします。

Sign up for IFTTT

IFTTTにはプレミアムプランがあるが、無料でサイトに登録することもできる。

サインアップしたら、上部にある「作成」ボタンをクリックして、最初のアプレットを作成してください。

Create new applet

これでIf This Then Thatウィザードが表示される。

まず、’Add’ボタンをクリックして、このアプレットを実行するきっかけとなるアプリを選択する必要がある。

IFTTT add app

サービスの選択」ページが表示されます。

YouTube動画を自動投稿したいので、プラットフォームとしてYouTubeを選択する必要があります。

Select YouTube

YouTubeを選択するとすぐに、IFTTTは使えるトリガーをたくさん表示する。

トリガーとして「チャンネル別新規動画」を選択する必要があります。

Trigger when new video appears on a YouTube channel

次に、YouTubeアカウントをIFTTTに接続するよう求めるプロンプトが表示される。

接続』ボタンをクリックしてください。

IFTTT connect YouTube

新しいウィンドウにポップアップが表示されます。

ここで、あなたのチャンネルを管理するために使用するYouTubeアカウントを選択する必要があります。

IFTTT select YouTube account to connect

次のステップに進み、IFTTTがYouTubeアカウントの表示権限を尋ねてきます。

許可」ボタンをクリックして先に進む。

Allow IFTTT access to YouTube account

投稿者の認証後、YouTubeアカウントとチャンネルIDを入力する必要があります。

そうしたら、「トリガーを作成」ボタンをクリックする。

Enter your YouTube channel ID

:自分のチャンネルIDは、YouTubeのサイトにアクセスし、プロフィールアイコンをクリックすることで確認できます。

そこから「設定」を選択し、「高度な設定」タブに切り替えます。

Find your YouTube channel ID

トリガーを作成すると、IFTTTはThen Thatの部分を入力するよう促す。

これは、IFTTTがあなたのチャンネルで公開した新しい動画を見つけた後に実行したいアクションです。

Adding the action part

Addボタンをクリックして続けます。

次の画面では、WordPressを検索して選択する必要があります。

Select WordPress

その後、実行したいアクションとして「投稿日を作成」をクリックする必要があります。

これで次のステップに進むことができる。

Create a post action

ここで、IFTTTがWordPressサイトとの接続を促す。

WordPressサイトのURL、ユーザー名、パスワードを入力すればOKです。

IFTTT connect WordPress

接続が完了すると、実行したいアクションを選択するよう求められます。

投稿を作成する」アクションをクリックして続けます。

Create a post action

次の画面では、YouTube動画から作成するWordPress投稿のさまざまなオプションを選択することができます。

重要:YouTube動画のURLタグが段落タグで囲まれていることを確認してください。こうすることで、WordPressが動画を検出して埋め込むことができます。

Post settings

投稿タイトル、コンテンツ、カテゴリー、タグを変更することができます。必要であれば、Add Ingredientボタンをクリックして動的要素を追加することもできます。

また、投稿をすぐに公開するか、下書きとして保存して後で公開するかを選択することもできます。

これらのオプション設定は自由に変更してください。投稿本文に含める必要がある唯一のオプションは、WordPressブログの投稿に動画が表示されるようにするためのYouTube動画のURLです。

完了したら、createボタンをクリックして続行すると、IFTTTがアプレットの概要を表示する。

Finalize IFTTT recipe

オプションで、このアプレットの実行時に通知をオンにすることができます。アプレットを保存して有効化するには、[完了] ボタンをクリックすることを忘れないでください。

IFTTTでURL短縮をオフにする

さて、IFTTTアプレットをテストする前に、まずIFTTTのURL短縮機能をオフにする必要がある。

初期設定では、IFTTTはYouTubeのURLにURL短縮サービスを使用するため、WordPressが動画を埋め込むことができない。

これを修正するには、上部のプロフィールアイコンをクリックし、アカウントメニュー項目を選択するだけです。

IFTTT account settings

ここから、URL短縮のセクションまでスクロールダウンする。

その後、’Auto-shorten URL’オプションの隣のボックスのチェックを外す。

Disable URL shortening

更新」ボタンをクリックして変更を保存することをお忘れなく。

YouTubeチャンネルに新しい動画をアップロードすると、WordPressサイトの新しい投稿として自動的に表示されるようになりました。

方法2:Smash Balloonを使ってYouTube動画をWordPressに自動投稿する。

この方法で、WordPressサイトにYouTube動画を自動的に表示することができます。

YouTube動画ごとに新しいブログ投稿を作成することはありません。その代わり、最新の動画を自動的に取得し、美しく表示します。

この方法は、重複コンテンツや動画のみの投稿日のオリジナルコンテンツ不足によるWordPress SEOの悪影響を回避するのに役立ちます。

また、カスタムYouTubeギャラリーフィードを作成し、サイト上の任意の場所に埋め込むことができます。

このチュートリアルでは、Smash Balloon YouTube Feedプラグインを使用します。Smash Balloon YouTube Feedプラグインは、WordPressのYouTubeプラグインとして最も優れており、ソーシャルメディアの投稿をWordPressサイトに自動的に表示することができます。

まず、Smash Balloon YouTube Feedプラグインをインストールし、有効化する必要があります。詳しくはWordPressプラグインのインストール方法をご覧ください。

有効化したら、WordPress管理ダッシュボードからYoutubeフィード ” 設定ページにアクセスします。ここでライセンスキーを入力し、「有効化」ボタンをクリックします。

この情報は、Smash Balloonサイトのアカウントから取得できます。

Activate your smash balloon license key

次に、WordPressの管理サイドバーからYouTubeフィード ” すべてのフィードのページに移動します。

ここで「新規追加」ボタンをクリックしてYouTubeフィードを作成します。

プレイリスト、個別動画、ライブストリームのいずれをサイトに追加するかを選択できます。

YouTubeの新しい動画を自動的に表示したい場合は、「チャンネル」オプションを使用することをお勧めします。

Choose YouTube feed type

そうすると、Smash Balloonはプラグインと接続するためにYouTubeアカウントのAPIキーを要求します。

すでにAPIキーをお持ちの場合は、「Enter API Key」ボックスにコピー&ペーストし、「Add」ボタンをクリックしてください。

ただし、YouTubeアカウントのAPIキーをお持ちでない場合は、WordPressで動画ギャラリーを作成する方法のチュートリアルをご覧ください。

Add YouTube API key

ソースを追加」ページに移動し、WordPressサイトに接続するためにチャンネルIDを追加する必要があります。

これを行うには、YouTubeチャンネルにアクセスし、上部にあるURLの’/channel/’または’/ユーザー/’の後に来るテキストをコピーします。

Add channel ID for your website

WordPressの管理ダッシュボードに戻り、「ソースを追加」設定にIDを貼り付けます。

次に、「接続」ボタンをクリックして、YouTubeチャンネルとプラグインを接続します。

Add your YouTube channel ID

YouTubeフィードのテンプレートを選択します。

選択したら、「次へ」ボタンをクリックして次に進む。

Choose a template for your Live YouTube feed

Smash Balloonのフィードエディターが画面に表示され、右側にYouTubeチャンネルのプレビュー、左側にカスタマイザーの設定が表示されます。

ここから、レイアウトの変更、ボタンの追加、動画の設定などを行うことができます。詳しくは、WordPressでYouTubeチャンネルの最新動画を表示する方法のチュートリアルをご覧ください。

カスタマイザーをカスタマイズしたら、「保存」ボタンをクリックして設定を保存し、「埋め込み」ボタンをクリックするだけです。

Save your YouTube feed

これで画面にプロンプトが表示される。

ここから、YouTubeフィードの埋め込みコードをコピーします。その後、「X」アイコンをクリックしてフィードエディターを終了します。

Copy the embed code for the feed

WordPressダッシュボードから、YouTubeチャンネルのフィードを表示したいページまたは投稿を開きます。

ブロックメニューが表示されたら、左上の「ブロックを追加」(+)ボタンをクリックします。ここから「Feed For YouTube」ブロックを追加します。

次に、ブロックパネルの「ショートコード設定」オプションにYouTubeフィード用のショートコードを貼り付けるだけです。

Paste embed code into the Feeds for YouTube block

最後に、「更新」または「公開」ボタンをクリックして、設定を保存します。

投稿やページを表示すると、YouTube動画がすっきりとしたグリッドレイアウトで表示されるようになりました。

YouTube videos displayed in a grid layout

これで、YouTubeチャンネルに新しい動画を投稿するたびに、WordPressサイトのフィードが自動的に更新されます。

ボーナス:Facebookの投稿から自動的に投稿を作成する

また、IFTTTを使って、WordPressブログの新規投稿を公開するたびにFacebook投稿を作成することもできます。これにより、ソーシャルメディアプラットフォームへのトラフィックを増やし、ソーシャルメディアでの存在感を高め、サイトの認知度を高めることができる。

そのためには、IFTTTのサイトにアクセスし、アカウントを作成する。その後、’Explore’ページに移動し、そこで自分に合うアプレットを検索することができる。

リストから「WordPress to FB Page」アプレットをクリックすることをお勧めします。

Choose an applet you like

新しい画面が表示されるので、「Connect」スイッチを「ON」に切り替える。その後、WordPressブログとFacebookアカウントの詳細を追加します。

次に、上部にある「設定」ボタンをクリックします。

Click the Settings button

トリガーとアクションを選択し、効果的な自動ワークフローを作成することができます。

これを行うには、「If This」オプションの隣にある「Add」ボタンをクリックする。

Click the Add button next to If This option

WordPressトリガーのリストが開きますので、「新規投稿」を選択してください。

これで再び「作成」ページに移動するので、「Then That」オプション設定の隣にある「Add」ボタンをクリックする。

Click Add next to the Then That option

次のステップでは、サイトに新しい投稿が公開されたら、WordPressの投稿リンクをFacebookページで共有するようIFTTTに指示します。

次に、「Add Action」ボタンをクリックする。

Choose a reaction for the WordPress action

これでIFTTTワークフローの作成は完了です。保存」ボタンをクリックして有効化してください。

詳しくは、IFTTTでWordPressとソーシャルメディアを自動化する方法のチュートリアルをご覧ください。

Click Save to store your settings

この投稿が、YouTubeの動画からWordPressの投稿を自動的に作成する方法を学ぶのにお役に立てば幸いです。WordPressに最適なソーシャルプルーフプラグインのリストや、WordPressにYouTube購読ボタンを追加する方法のチュートリアルもご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

20件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Mike says

    Hi, this is a good thing on IFTTT for NEW videos, but what if I wanted to generate posts from existing videos on youtube, for example, videos in a playlist. Is there a way to do that?

    • WPBeginner Support says

      For the moment we do not have a recommended retroactive method for creating the posts.

      管理者

  3. Zakir A. Qureshi says

    Hello Every One if i do AutoBlog With YouTube is there any issue of Copyright Please guide Me Thanks .

  4. John says

    Please I tried to use the ifttt to WordPress after connected it does not create post at my website. When I check the report on ifttt it say. Something wrong with WordPress services.

  5. Nick Barban says

    Hi found this article by accident. I was investigating autoblogging after an article i read on google+ from WP B. ive signed up with IFTTT but i dont know know wether im being blind or stupid ;) i ve tried to set up an application password but I cant find anywhere to set this up within my wordpress site. Im guessing that as im using clef authentication to log in, this is causing the problem. Can i get round this problem by deactivating clef and relogging in via login and password? will that give me the option to set up application passwords. And can i reactivate clef once this is set up and the application passwords still work. Primary reason for setting this up is to have a live autoblog update of new videos being posted on YouTube. Im likely to be posting quite a few this year. Thanks for your help in advance. Nick

    • Jose_Martino says

      Thank for explaining the nature of the problem better, however, I still havent been able to fix the issue with the oembed adding the old flash code when using IFTTT.

      I did add the Fitvids plugin and configured as mentioned in the article, but issue still persist. I did not notice that if I manually add the youtube url to an article the proper ifram code is used, but I still see the problem only occurring when I use IFTTT.

      Do you have any ideas as to what may causing this issue. I’ve been dealing with this issue for a while and it has been frustrating not finding the fix. Other then this problem, it works great! Thanks again for answering.

    • Jose_Martino says

      wow, I just noticed what I was doing wrong, I choose embed code instead of URL in the recipe. With the URL, the recipe works as you mention, URL is translated by the website automatically into iframe code.

      If you use the EmbedCode ingredient the embed code is added to the post but it uses the flash code. Thank God I read your post, and realized I could just use the URL ingredient and did not need to used EMbedCode.

      Thanks again for all your help

  6. Jose_Martino says

    I use this service for posting my youtube videos, however, I recently became aware that ifft uses the old youtube embed code to post the youtube videos on your word press page, and therefore when a visitor views your article on the phone the videos do not display. I wish IFTTT would upgrade to use the iframe format of the embed code, because otherwise it is a great function

  7. WPBeginner Staff says

    This can be caused by a security plugin installed on your site.

    Also make sure that your WordPress Address and Site Address are the same URLs in settings. If you have a setup where WordPress is installed in a different directory than the site address, then you will need to use the WordPress address on IFTTT.

  8. Michiel Andreae says

    Great idea. I was looking for exactly this. Unforunately my IFTTT can’t connect to my WordPress site. It returns “Live channel fields value is not a valid WordPress url”. Any idea how I can fix this?

  9. jc says

    you have a super website and this is information I am looking for right now. I already have an account and will set this up today. as always, thanks so very much for sharing all of this pertinent information. whilei am fairly new to WordPress, these articles are a great help. you explain directions in a very clear, concise and easy to understand manner. thanks again!

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。