Giter Site home page Giter Site logo

kaburk / bcwpimporter Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 15 KB

WordPress の投稿データを baserCMS 4 系 のブログへ取り込みます。

Home Page: https://blog.kaburk.com/blog/archives/166

License: MIT License

PHP 100.00%
plugin basercms wordpress blog basercms4

bcwpimporter's Introduction

BcWpImporter

WordPress の投稿データを baserCMS 4 系 のブログへ取り込みます。

カスタマイズされた WordPress などには対応しておりません。 必要に応じてソースコードを見てご自身でカスタマイズしてください。

データを完全に移行できるものではありませんが 大量の記事データがあるときなどの移行の手助けになると思いますので、 よかったら活用してください。

Documentation

WordPress 管理画面 > ツール > エクスポート にて 投稿を選んでエクスポートした XML ファイルを準備してください。

データ移行時の注意点

画像について

記事内の画像は、 WordPress の画像がアップロードされているフォルダの内容を {WordPress インストールフォルダ}/wp-content/uploads/ を、 {baserCMS インストールフォルダ}/files/wp-content/uploads/ にコピーすると baserCMS のブログ記事内でも表示する想定にしております。

パス名やファイルの位置は必要に応じてソースコードを書き換えて 利用したいフォルダに変更してご利用ください。

カテゴリ、タグについて

WordPress の投稿記事では複数のカテゴリを設定できますが、 baserCMS では仕様上、ブログ記事にカテゴリは1つしか設定できません。 その為、データ移行時には最初のカテゴリ以外は移行できません。

また、ブログタグについても移行可能ですが、 baserCMS の仕様上複数のブログでタグは共通になります。

文字数オーバーについて

記事タイトルや、カテゴリ名、タグ名などが長すぎる場合は、 baserCMS 側で取り込めるサイズで後半が自動でカットされます。

TODO

  • ブログ記事のアイキャッチデータの対応
  • 固定ページやカスタム投稿タイプなどにも対応する

License

Lincensed under the MIT lincense since version 2.0

bcwpimporter's People

Contributors

kaburk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

keisuke-kira

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.