Article Directoryは、誰でも記事の投稿できるディレクトリ型サイトを作成するプラグインです。
(もちろん、記事を投稿するにはユーザー登録、もしくは管理者が容易した登校用ユーザーIDが必要。)
ニュースサイトや、仕様を応用すればディレクトリ型リンクサイトなども作れると思います。
とりあえず、どんな風になるのか
参考:英語サイト
Article Directoryトップ
このプラグインは、コードを、index.phpに追加するだけで使用できるのですが、プラグイン専用?テーマのハックで使えそうなのがあったので、既存のテーマに専用テーマを組み込んでリメイク
とりあえず、管理人の分かる範囲で使用法
Article Directory
「Download」下のリンクからダウンロード
プラグインのダウンロード&アップロード&有効化
既存のテーマに使用する場合は、index.phpのdiv class entryないしclass postの中に以下のコードを追加
<?php if (function_exists('article_directory')) article_directory(); ?>
既存のスタイルシートに
@import ‘categories.css’;
テーマフォルダ内にcategories.cssを作成。
管理画面→プラグイン→プラグインエディタ「Article Directory」を開き、div id categoriesを探して、そこで使われてるタグをcategories.cssで定義していく。
専用テーマを使用する場合はプラグインのアップロードと専用テーマをテーマディレクトリにアップロード
Article Directory 1.5 WordPress Theme
「Download」から
[設定]
管理画面→設定→Article Directoryを開く
上から
■Categories List Options
“Comma separated IDs of categories, which should be excluded:”
ディレクトリーから除外したいカテゴリーIDを入力すると、ディレクトリーから除外される。(更新履歴などの管理用カテゴリーを表示させたくない場合)
“Show the number of articles in parent categories?”
親カテゴリーの投稿数を表示するかしないか
“Show the number of articles in child categories?”
子カテゴリーの投稿数の表示非表示
“Hide empty categories?”
投稿のないカテゴリーは隠す
“Show description in the title of parent categories?”
???
“Show description in the title of child categories?”
???
“Use hierarchy for child categories?”
孫カテゴリーに段階をつける
“The number of columns for categories list:”
カテゴリーリストの列数
“2″なら2列、”3″なら3列。
“Sort categories list:”
カテゴリーの配置、
[by name]
名前順(デフォルト)
[by your choice]
プラグイン”My Category Order”を併用し、並び替え
“Sort direction of parent categories:”
?
“Show the “No categories”, if category don’t contain subcategories?”
子カテゴリーが含まれてない場合は、「カテゴリーなし」と表示するかしないか
“Show the child categories?”
子カテゴリーを表示するかしないか
“The number of child categories to show:”
子カテゴリーはいくつ表示するか
“0″なら全部
■投稿オプション
“Show warning to author, if not selected any category?”
投稿公開の時にでカテゴリーにチェックが入ってないと確認メッセージを表示するかしないか。
“Show warning to author, if selected more than one category?”
投稿画面のカテゴリーのチェック入れで、ひとつ以上のチェックがあれば警告メッセージを表示するかしないか。
“Hide unnecessary blocks from the “Write Post” page, if this is not the site administrator?”
投稿者が管理者でなければ、投稿画面の不要な項目を隠すか否か?
“Show the tags field?”
タグフィールドを表示するかしないか
“Which version of WordPress you are using?”
ワードプレスのバージョンは?
2.3xと2.5xしか選択できないが2.6.1で使用できてるのでここは気にせず
“The height of the categories block, in pixels:”
?
“Use “Terms of article publication” on “Write/Edit Post” page?”
?
■Other Options
“Exclude the child categories articles from the parent categories pages?”
?
“Show article source code?”
ここを Yes にすると、投稿本文の下に Article Source のリンクが表示され、リンクをクリックすると記事のソースコードが表示される。
ニュースサイトなどの、閲覧者が自分のブログなどに記事を引用できるようにですね。
設定が終わったら Update Optionをクリックし設定を保存
以上です。
贅沢言えばadminファイルも設定できると嬉しい
カテゴリーが多いと投稿画面で目的のカテゴリーにチェック入れるのが大変
もうちょっと調べてみます