スキップメニュー:コンテンツへナビゲーションへ

乱雑モックアップ   らんざつ[乱雑] (名・形動)[文]ナリ 入り乱れていること。乱れていて秩序がないこと。また、そのさま。

Improved Include Page

2009年 9月 3日 |

plugin, WordPress |

このエントリをはてなブックマークに追加このエントリをdel.icio.usに追加このエントリをLivedoor Clipに追加このエントリーのブックマーク数

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&amp;titleBefore=&lt;h2 class=&quot;sidebar-header&quot;&gt;'); ?>

記事から呼び出すには(”["と文字の間にスペースを入れてある)

[ include-page id="123" ]
[ include-page id="3" displayTitle="true" displayStyle="DT_TEASER_MORE" titleBefore="&lt;h3&gt;" titleAfter="&lt;/h3&gt;"  more="continue&amp;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"]

関連リンクも表示されちゃうのかぁ [追記|一覧画面だと表示されてなかった]
このプラグインのうまい使い道が思いつかないなぁ


1件のコメント »

  1. [...] WordPress › Improved Include Page « WordPress Plugins 実装してたページ|Improved Include Page « 乱雑モックアップ [...]

    ピンバック by 編集中 / 乱雑モックアップに導入しているWordPressのプラグインを見直し中。 « 乱雑モックアップ — 2010年4月15日 @ 22:27

この投稿へのコメントの RSS フィード。 TrackBack URL

コメントする

You can add images to your comment by clicking here.




Back to Top↑

あわせて読みたい

Back to Top↑

RSS 乱雑モックアップのフィード

Copyright © 乱雑モックアップ. All Rights Reserved.