Improved Include Page
http://wordpress.org/extend/plugins/improved-include-page/installation/
- 準備
- ダウンロードしてきてiinclude_page.phpをwp-content/pluginsに入れる
- 使い方
-
テンプレートファイルたとえばsidebar.phpに以下を記述
<?php iinclude_page(4); ?> <?php echo iinclude_page(4, null, true); ?> <?php iinclude_page(4,'displayTitle=true&titleBefore=<h2 class="sidebar-header">'); ?>
記事から呼び出すには(”["と文字の間にスペースを入れてある)
[ include-page id="123" ] [ include-page id="3" displayTitle="true" displayStyle="DT_TEASER_MORE" titleBefore="<h3>" titleAfter="</h3>" more="continue&raquo;" ]
パラメーター
- DT_TEASER_MORE|Teaser with ‘more’ link (default)
- DT_TEASER_ONLY|Teaser only, without ‘more’ link
- DT_FULL_CONTENT|Full content including teaser
- DT_FULL_CONTENT_NOTEASER|Full content without teaser
試しにpost=520を読み込んでみる
[include-page id="520"]
関連リンクも表示されちゃうのかぁ [追記|一覧画面だと表示されてなかった]
このプラグインのうまい使い道が思いつかないなぁ
[...] WordPress › Improved Include Page « WordPress Plugins 実装してたページ|Improved Include Page « 乱雑モックアップ [...]
ピンバック by 編集中 / 乱雑モックアップに導入しているWordPressのプラグインを見直し中。 « 乱雑モックアップ — 2010年4月15日 @ 22:27