Changeset 1915061
- Timestamp:
- 07/26/2018 01:05:22 AM (8 years ago)
- Location:
- article-importer/trunk
- Files:
-
- 3 edited
-
article-importer.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
sample/articles_sample.csv (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
article-importer/trunk/article-importer.php
r1913265 r1915061 4 4 Plugin URI: http://wordpress.org/plugins/article-importer/ 5 5 Description: CSVデータから記事を投稿します。 6 Author: kijitsuku6 Author: MINO System 7 7 Author URI: https://kijitsuku.work/ 8 Version: 1. 08 Version: 1.1 9 9 License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 10 */ … … 76 76 $roopCount++; 77 77 78 if(count($csvData) != 7) {78 if(count($csvData) != 8) { 79 79 echo sprintf("<p><strong>スキップしました:%s行目</strong></p>" , $roopCount); 80 80 continue; … … 85 85 $Category = $csvData[3]; 86 86 $Tags = $csvData[4]; 87 $ArticleDate = $csvData[5]; 88 $TemplateInfo = $csvData[6]; 87 $Remarks = $csvData[5]; 88 $ArticleDate = $csvData[6]; 89 $TemplateInfo = $csvData[7]; 89 90 90 91 $post_categories = term_exists($Category, 'category'); … … 127 128 $TemplateInfo = str_replace("{{{カテゴリ}}}", $Category, $TemplateInfo); 128 129 $TemplateInfo = str_replace("{{{タグ}}}", $Tags, $TemplateInfo); 130 $TemplateInfo = str_replace("{{{備考}}}", $Remarks, $TemplateInfo); 129 131 130 132 $post = array( -
article-importer/trunk/readme.txt
r1913258 r1915061 5 5 Requires at least: 4.9 6 6 Tested up to: 4.9 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 == Changelog == 39 39 40 = 1.1 = 41 Column 'Remars' add 42 40 43 = 1.0 = 41 44 Initial release -
article-importer/trunk/sample/articles_sample.csv
r1913258 r1915061 1 Sample Title,,,Categorys,"Tag1, Tag2, Tag3",2018-07-21 16:37,<p>ようこそ!</p><h3>{{{タイトル}}}</h3><p>記事のカテゴリ:{{{カテゴリ}}}</p><p>記事のタグ:{{{タグ}}}</p> 1 Sample Title,,,Categorys,"Tag1, Tag2, Tag3",Remarks,2020-07-26 16:37,<p>ようこそ!</p><h3>{{{タイトル}}}</h3><p>記事のカテゴリ:{{{カテゴリ}}}</p><p>記事のタグ:{{{タグ}}}</p>{{{備考}}}
Note: See TracChangeset
for help on using the changeset viewer.