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

Gutenbergブロックエディターで古いWordPress投稿を更新する方法

古いコンテンツの更新は、WordPressサイトを成功させるために必要なことです。

数多くのWordPressユーザーとの作業を通じて、クラシック投稿をブロックに変換することで、パフォーマンスを向上させながら過去のコンテンツを強化できることを実感しています。

多くのサイトオーナーは、Gutenbergで古い投稿を更新するとコンテンツが壊れてしまうのではないかと心配している。

WordPressはこの移行をスムーズかつ管理しやすく、コンテンツを失うことなく最新のブロック機能で投稿を改善できるのが良い点です。

このガイドでは、ブロックエディターを使って古いWordPress投稿を安全に更新する方法を順を追って説明します。

update-your-old-articles-with-gutenberg

注: WordPressのGutenbergエディターは、WordPressでコンテンツを作成する簡単で柔軟な方法を提供します。しかし、まだ使用する準備ができていない場合は、Gutenbergを無効化してClassicエディタープラグインを使用することができます。

あるいは、まずGutenbergに更新するためのサイトの互換性をテストすることもできます。

クラシックエディターとGutenbergエディターの違いは?

始める前に、まず旧クラシックエディターとGutenbergブロックエディターの主な違いについて説明しよう。

クラシックエディターは、Microsoft Wordによく似たテキストエディターだった。個別編集フィールドがあり、上部に設定オプションがあった。

クラシックエディターはこんな感じ:

Old WordPress editor

一方、Gutenbergエディターは完全にブロックベースのエディターで、WordPress 5.0から利用できる。すべてのコンテンツをブロックの形で追加することになる。

Gutenbergブロックエディターはこんな感じ:

Editing the 'Home' Page With the Block Editor

ブロックは、独自の設定オプションを持つ、互いに区切られたコンテンツ要素です。各コンテンツには、以下のような個別のブロックがあります:

  • 通常のテキストまたは段落
  • Imagely
  • ボタン
  • ギャラリー
  • リスト
  • テーブル
  • エンベッド、その他。

さらに、WordPressプラグインやテーマが提供するコンテンツブロックオプションを見つけることができます。

例えば、WPFormsはサイトにフォームを埋め込めるブロックを追加します。

Adding the WPForms block to a WordPress page or post

Gutenbergエディターで投稿を作成または編集するには、ブロックを使用する必要があります。ここでは、Gutenbergブロックエディターで古いブログ投稿やページを更新する方法を紹介します。

クラシックWordPressの投稿をGutenbergに変換する方法(ステップバイステップ)

WordPressのブログを最新バージョンに更新した場合、初期設定エディターとしてGutenbergブロックエディターが利用できるようになります。

Gutenbergの良い点は、古いコンテンツに影響を与えず、簡単に古い投稿を編集できることだ。

過去の投稿やページを編集するには、WordPressで通常行うように編集するだけです。

コンテンツエディターでは、コンテンツ全体が1つのClassicブロックに包まれているのが見えます。

Classic block in Gutenberg Block Editor

同じ投稿は、古いクラシックエディターでは下のスクリーンショットのようになります。

お気づきのように、既存のコンテンツは同じである。しかし、その構成方法は若干異なっているようだ。

Classic editor post example

新しいWordPressブロックエディターは、コンテンツに変更を加えることはなく、WordPressサイト上での見た目は変わりません。

これで、古いブログ投稿やページを編集するための2つのオプションができました:

  1. クラシックブロック内で編集を続ける。
  2. 古いコンテンツを新しいGutenbergブロックに変換しましょう。

最初のオプションは、クラシックブロック内で古い投稿の編集を続けることです。

クラシック・ブロックは、上部に設定オプションがあるクラシック・エディターと同じインターフェースを提供します。これはかなり簡単です。

2つ目の設定は、古いコンテンツを新しいGutenbergブロックに変換することです。

コンテンツ上部をクリックし、「ブロックに変換」ボタンを選択することで可能です。

Convert classic post to blocks

それだけだ!

古いコンテンツは自動的に一致ブロックに変換されます。クラシックブロック内のコンテンツは、いくつかの異なるブロックに分割されます。

これで、新しいGutenbergエディターブロックを使って古い投稿を編集することができます。各ブロックは、独自の設定オプション、スタイル、デザインオプションを持つ独立したエンティティです。

画像の外観を変更したい場合は、画像をクリックしてブロックを選択するだけで、編集オプションが上部に表示されます。

画面右の「ブロック」タブにもオプションが表示されます。

Example of Gutenberg blocks

例えば、段落ブロックでは、ツールバーでテキストや背景色の変更、タイポグラフィの選択、リンクの追加などができます。

同じプロセスで、すべてのブロックを編集し、投稿を視覚的に印象的に見せることができる。

必要な編集をすべて終えたら、画面右上の「更新」ボタンをクリックして変更を保存します。

さらに詳しく Gutenbergエディターのヒントとコツ

ブロックエディターを最大限に活用する準備はできましたか?WordPressのチュートリアルをご紹介します:

この投稿が、Gutenbergブロックエディターで古い記事を更新する方法を学ぶのにお役に立てば幸いです。カスタムWordPressブロックの作成方法に関するチュートリアルや、WordPressブロックパターンの使用方法に関するガイドもご覧ください。

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.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

19件のコメントLeave a Reply

  1. In the classic editor, there was a way to update the date on an existing post and schedule it for a new date/time. I don’t see that option in Gutenberg. I only see a way to change the date and then update the post. Does this accomplish the same thing?

  2. When I click Convert to blocks my page turns to what looks like code. So, I guess it is not converting correctly. I have other pages that converted fine a while back and I’m able to create new pages using blocks. Does that mean I will need to retype it all by hand?

    • If it is a specific page then there may be an issue with that page, you likely would need to manually recreate that specific page.

      Admin

  3. I don’t have the 3 dots to the right of the editing toolbar. Does that mean my theme does not support the Gutenberg editor? I’ve been using it since 2016 but I’m on WordPress version 5.3.2.

    Bettye

    • You may not be using a classic block for your content if the editor looks different than what we’re showing as one common reason for that

      Admin

  4. I am on the current version of WordPress, but do not have any option to switch from the classic editor to Gutenberg. Now that’s a puzzle! I do not have any plugins installed that would inhibit Gutenberg or keep me with the classic editor.

    Any ideas?

    • You may want to go to your profile to see if you have disable visual editor checked as a possible reason.

      Admin

    • Yes, pages would be done the same way and if you wanted you could add the HTML using the code block if you wanted

      Admin

  5. Oh my goodness, I’ve been doing the conversion laboriously by hand. At least I haven’t done all of my prior posts by hand. Thank you for this great post. The info will definitely be a time saver for me.

  6. Very difficult getting a PayPal Button into a page now. Even with the PayPal Plugin installed and I tried to us the new button block. Hours later, I am still stuck.

    • If you are using their html to embed the button you may want to try the custom html block

      Admin

  7. I believe the article is correct when you have something simple like an image and some text. What about videos, links, embeds, anchors, documents, woocommerce, plugins that are images or text etc.? How much after the fact fixing is needed for hundreds of pages created in the old editor. Creating from scratch looks easy, fixing created pages scares me for the amount of additional work needed.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.