Changeset 1921914
- Timestamp:
- 08/09/2018 12:54:18 AM (8 years ago)
- Location:
- article-importer/trunk
- Files:
-
- 3 edited
-
article-importer.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
sample/articles_sample.csv (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
article-importer/trunk/article-importer.php
r1915062 r1921914 6 6 Author: kijitsuku 7 7 Author URI: https://kijitsuku.work/ 8 Version: 1. 18 Version: 1.2 9 9 License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 10 */ … … 88 88 $ArticleDate = $csvData[6]; 89 89 $TemplateInfo = $csvData[7]; 90 91 $Tags = mb_convert_kana($Tags, 's'); 92 $allTags = explode( " ", $Tags ); 90 93 91 94 $post_categories = term_exists($Category, 'category'); … … 147 150 'post_title' => $Title, 148 151 'post_name' => $postname, 149 'tags_input' => $ Tags,152 'tags_input' => $allTags, 150 153 ); 151 154 -
article-importer/trunk/readme.txt
r1915063 r1921914 5 5 Requires at least: 4.9 6 6 Tested up to: 4.9 7 Stable tag: 1. 17 Stable tag: 1.2 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.2 = 41 全角スペースがあった場合タグが一つの文字で認識されていたため修正 42 40 43 = 1.1 = 41 44 Column 'Remars' add -
article-importer/trunk/sample/articles_sample.csv
r1915061 r1921914 1 Sample Title,,,Categorys,"Tag1 , Tag2,Tag3",Remarks,2020-07-26 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.