Plugin Directory

Changeset 1915061


Ignore:
Timestamp:
07/26/2018 01:05:22 AM (8 years ago)
Author:
minosystem
Message:

Remarks add

Location:
article-importer/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • article-importer/trunk/article-importer.php

    r1913265 r1915061  
    44Plugin URI: http://wordpress.org/plugins/article-importer/
    55Description: CSVデータから記事を投稿します。
    6 Author: kijitsuku
     6Author: MINO System
    77Author URI: https://kijitsuku.work/
    8 Version: 1.0
     8Version: 1.1
    99License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    1010*/
     
    7676                $roopCount++;
    7777
    78                 if(count($csvData) != 7) {
     78                if(count($csvData) != 8) {
    7979                    echo sprintf("<p><strong>スキップしました:%s行目</strong></p>" , $roopCount);
    8080                    continue;
     
    8585                $Category = $csvData[3];
    8686                $Tags = $csvData[4];
    87                 $ArticleDate = $csvData[5];
    88                 $TemplateInfo = $csvData[6];
     87                $Remarks = $csvData[5];
     88                $ArticleDate = $csvData[6];
     89                $TemplateInfo = $csvData[7];
    8990               
    9091                $post_categories = term_exists($Category, 'category');
     
    127128                $TemplateInfo = str_replace("{{{カテゴリ}}}", $Category, $TemplateInfo);
    128129                $TemplateInfo = str_replace("{{{タグ}}}", $Tags, $TemplateInfo);
     130                $TemplateInfo = str_replace("{{{備考}}}", $Remarks, $TemplateInfo);
    129131               
    130132                $post = array(
  • article-importer/trunk/readme.txt

    r1913258 r1915061  
    55Requires at least: 4.9
    66Tested up to: 4.9
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838== Changelog ==
    3939
     40= 1.1 =
     41Column 'Remars' add
     42
    4043= 1.0 =
    4144Initial 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>
     1Sample 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.