Improved Include Page
http://wordpress.org/extend/plugins/improved-include-page/installation/
- 準備
- ダウンロードしてきてiinclude_page.phpをwp-content/pluginsに入れる
- 使い方
-
テンプレートファイルたとえばsidebar.phpに以下を記述
[php]
<?php iinclude_page(4); ?>
<?php echo iinclude_page(4, null, true); ?>
<?php iinclude_page(4,’displayTitle=true&titleBefore=<h2 class="sidebar-header">’); ?>
[/php]記事から呼び出すには(”[“と文字の間にスペースを入れてある)
[code][ include-page id="123" ]
[ include-page id="3" displayTitle="true" displayStyle="DT_TEASER_MORE" titleBefore="<h3>" titleAfter="</h3>" more="continue&raquo;" ]
[/code]パラメーター
- 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″]
関連リンクも表示されちゃうのかぁ [追記|一覧画面だと表示されてなかった]
このプラグインのうまい使い道が思いつかないなぁ
コメント