Recent Posts Widget Extendedはショートコードやウィジェットで最近の投稿を表示できるプラグイン。カスタムCSS、投稿の表示数、並び替え、カテゴリー・タグ・タクソノミーの制限、抜粋表示、サムネイル表示、オフセット、Readmore表示なども設定ができます。
Recent Posts Widget Extendedプラグインを導入
ダッシュボード >> プラグイン >> 新規追加 >>
有効化にするとウィジェットにRecent Posts Extendedが追加されます。
ウィジェット
ウィジェットを移動させます。
CSS ID | rpwe-blockの位置にCSS IDを追加 |
---|---|
CSS Class | rpwe-blockの位置にCSS classを追加 |
HTML or text before the recent posts | 最近の投稿の表示前にHTMLまたはテキストを追加 |
HTML or text after the recent posts | 最近の投稿の表示後にHTMLまたはテキストを追加 |
Ignore sticky posts | スティッキーポストを無視 |
Exclude current post | 現在のポストを除外する |
Post Types | ポストタイプ |
Post Status | ポストステータス |
Order | 並び順 |
Orderby | 並び替え |
Limit to Category | カテゴリの制限 |
Limit to Tag | タグの制限 |
Limit to Taxonomy | タクソノミーの制限 |
Number of posts to show | 表示させる投稿数 |
Offset | スキップする投稿数 |
Display Thumbnail | サムネイル表示 |
Thumbnail (height,width,align) | サムネイル |
Default Thumbnail | デフォルトサムネイル設定 |
Display Excerpt | 抜粋を表示 |
Excerpt Length | 抜粋の長さ |
Display Readmore | Readmoreを表示 |
Readmore Text | Readmoreテキスト |
Display Comment Count | コメント数の表示 |
Display Date | 投稿日表示 |
Display Modification Date | 変更日を表示 |
Use Relative Date. eg: 5 days ago | どれくらい前と表記を変更。例:5 days ago |
Use Default Styles | デフォルトのスタイルを使用します |
Custom CSS | カスタムCSS |
ショートコード
ベーシック。
[rpwe]
投稿10件表示。
[rpwe limit="10"]
投稿10件、サムネイル表示。
[rpwe limit="10" thumb="true"]
一覧
limit="5"
offset=""
order="DESC"
orderby="date"
post_type="post"
cat=""
tag=""
taxonomy=""
post_type="post"
post_status="publish"
ignore_sticky="1"
taxonomy=""
excerpt="false"
length="10"
thumb="true"
thumb_height="45"
thumb_width="45"
thumb_default="http://placehold.it/45x45/f0f0f0/ccc"
thumb_align="rpwe-alignleft"
date="true"
readmore="false"
readmore_text="Read More »"
styles_default="true"
cssID=""
before=""
after=""