CSVのデータをWordPressで一括投稿するには、「WP All Import」(Import any XML or CSV File to WordPress)のプラグインも使えるのですが、カスタムフィールドなどのデータを使うには「WP All Import」では費用がかかります。
そこで無料で使える「WP Imp Exp」をご紹介します。
WP Imp Expの特徴
ポイント
- カスタムフィールドの取り込みを行いたい
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_08-2.png)
プラグインをインストールすると下記のメニューが表示されます。
下記の項目を設定できます。
- New Export:新規エクスポート
- Manage Export:エクスポートを管理する
- New Import:新規インポート
- Manage Import:インポートを管理する
- Settings:設定
- Extensions
エクスポート(WordPressからCSVをエクスポートする)
WordPressからCSVファイルを作成する方法です。CSVデータをダウンロードして加工して、再アップロードを行います。
まずはエクスポートの方法からです。
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_05.png)
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_10.png)
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_15_58-1.png)
①初めての場合
過去に行ってテンプレートがある方はスクロールして、「②過去に行ってテンプレートがある方」をご覧ください。
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_20_57.png)
下記の内容はスルーしてOKです。
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_20_57-1.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/New_Export_‹_ジョブナビ_グンマー_—_WordPress.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_21_05.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_21_16.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_21_05-1.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/New_Export_‹_ジョブナビ_グンマー_—_WordPress-1.png)
カテゴリーやタグ、タクソノミー
![](https://goriweb.jp/wp-content/uploads/2023/09/名称未設定.png)
カテゴリーやタグ、カスタムフィールドなどは日本語で選ぶことができます。
カスタムフィールドの場合
カスタムフィールドは英語表記です。
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_21_07.png)
カスタムフィールドの場合は英語になります。「_休日」や「_bikou」などで日本語の項目名で出すとエラーになりますのでご注意ください。
その他の情報
![](https://goriweb.jp/wp-content/uploads/2023/09/名称未設定-1.png)
なめくじとは「slug 」のことです。Chromeで強制的に日本語翻訳をかけているので、なめくじと表現されます。
他の情報にも必要なものは選択してください。
Simple SEOのプラグインを設置していふ場合は下記を使います。
- タイトル(SEO title)
ssp_meta_title
- ディスクリプション(SEO description)
ssp_meta_description
![](https://goriweb.jp/wp-content/uploads/2023/09/New_Export_‹_ジョブナビ_グンマー_—_WordPress-2.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/New_Export_‹_ジョブナビ_グンマー_—_WordPress-3.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-32.png)
最後に行うこと
操作ごとにテンプレートの保存を行ってください。次回より、上記の内容を省略できます。データ名は「20240319-01 エクスポート」のようなシンプルなものでOKです。
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_19_16_33.png)
②過去に作業を行いテンプレートがある方
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_15_58.png)
アップデートボタンを押すと読み込まれます。
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_19_16_29-1.jpg)
設定情報が読み込まれる。
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_00.png)
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_00-1.png)
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_02.png)
![](https://goriweb.jp/wp-content/uploads/2023/08/image-6.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_21_46.png)
インポート(CSVをWordPressに取り込む)
CSVのダウンロード
![](https://goriweb.jp/wp-content/uploads/2024/03/image-31-scaled.jpg)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-30.png)
インポート(CSVをWordPressに取り込む)
WordPressからCSVファイルを再加工して、再アップロードを行います。
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_18.png)
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_19.png)
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_20.png)
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_12.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_19_15_09.jpg)
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_21-1.png)
特に設定は不要です。
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_19_15_12-scaled.jpg)
①過去にインポートしたことがあり、保存データがある場合
![](https://goriweb.jp/wp-content/uploads/2023/08/貼り付けた画像_2023_08_28_16_23.png)
②新規の場合または項目修正する場合
右にある表の左項目を反映したい箇所にドラッグアンドドロップします
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_21_56.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_21_57.png)
アイキャッチ画像の場合は2通りあります。下記のように設定します。
画像のURLでアイキャッチ読み込む場合
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_20_1_45.jpg)
画像のファイル名でアイキャッチを読み込む場合
![](https://goriweb.jp/wp-content/uploads/2024/03/image-33-3.jpg)
カスタムフィールドも反映していきます。
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_19_20_35.png)
カスタムフィールドは順番が変更されていますが、状態を対象の箇所に反映していきます。
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_22_02.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_19_20_59.png)
その他の投稿オプションは下記になります
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_19_20_53.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/image-23.png)
保存画面は最上部にあります。「設定を保存する」をクリックすると編集画面が開きます。
![](https://goriweb.jp/wp-content/uploads/2024/03/image-31.png)
設置名に名前を入れて、保存ボタンを押します。
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_19_15_25.png)
投稿のアイテムの検索
- ナメクジ(slug)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-33.jpg)
![](https://goriweb.jp/wp-content/uploads/2023/09/image-15.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_19_15_28.jpg)
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_07_22_23.png)
下記のバックグランドインポートはおすすめできないです。バックグランドインポートとは、別作業でインポートをお行う方法です。
![](https://goriweb.jp/wp-content/uploads/2023/09/image-25.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/image-21.png)
![](https://goriweb.jp/wp-content/uploads/2023/09/image-22.png)
上手く行かない場合
本文が入っていない場合
本文が読み込まれていない可能性があります。こちらの設定を行って再度、取り込んでください。
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_19_20_44.png)
{Content[1]}を設定してください。再度、取り込内容をチェックしてください。
![](https://goriweb.jp/wp-content/uploads/2024/03/image-30.jpg)
アイキャッチが反映されない場合
画像が読み込まれていない可能性があります。こちらの設定を行って再度、取り込んでください。
{imageurl[1]}または、{imagesfilename|1])を設定してください。再度、取り込内容をチェックしてください。
![](https://goriweb.jp/wp-content/uploads/2023/09/貼り付けた画像_2023_09_19_20_50.png)
セッティング
データを書き出す
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_20_1_53-scaled.jpg)
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_20_1_54.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_20_1_55.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-33.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-34.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-35.png)
データを削除する
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_20_1_53-scaled.jpg)
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_20_1_54.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_20_1_55.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-33.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-36.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-40.png)
データをインポートする
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_20_1_53-scaled.jpg)
![](https://goriweb.jp/wp-content/uploads/2024/03/貼り付けた画像_2024_03_20_1_54.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-38.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-39.jpg)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-39.png)
![](https://goriweb.jp/wp-content/uploads/2024/03/image-37.png)