
內容簡介
列出文章🙂
此外掛已發佈在 GitHub 上。
功能
用於 WordPress 文章擷取和列表。
主要適用於輸出指定篇數的最新文章。
您可以簡單地將「[list]」短碼放在您的部落格首頁、側邊欄或頁尾,就可以列出最新文章的標題(連結)和前面的頁面。也可以設定分類和自訂文章類型、分類法等。
參數
主要參數,請參閱 Codex 的 get_posts。
post_type:WordPress 文章類型。預設為文章。(預設值:post)
cat_name:類別別名。(預設值:「」)
num:數字:您想輸出的文章數量。(預設值:10)
class:無序列表的類別名。可能比較容易調整🙂(預設值:「」)
orderby:文章的排序方式。(預設值:post_date)
order:遞增或遞減。(預設值:DESC)
length:如果您想要調整文章標題的長度。(預設值:空白)
taxonomy:如果您想指定自訂分類法輸出文章。(預設值:空白)
term:必要條件為「分類法」。(預設值:空白)
more:閱讀全文連結文字。(預設值:…)
post_format:文章格式
thumbnail:顯示文章縮略圖。(預設值:啟用)
slider_mode:如果啟用,僅顯示圖片。(預設值:空白)
範例
[list] 最簡單的。
[list post_type=post cat_name=news num=5 class=newslist] 在視覺編輯器中。
<?php echo do_shortcode( '[list]' ); ?> 在樣板中。
其他
也可用於小工具 🙂
聯繫方式
Twitter:@marushu
電子郵件:shuhei.nishimura[at]gmail.com
外掛標籤
開發者團隊
原文外掛簡介
List the article 🙂
This plugin published on GitHub.
Fetures
WordPress post retrieve and list.
Purpose to be output by the number specified latest posts mainly is suitable.
You can simply put a “[list]” short code, to list the title of the latest article (link with) and the front page of your blog, sidebar, footer. Set category and custom post type, taxonomy also other it is also possible.
Parameters
Main parameters, refer to the get_posts of Codex.
post_type: WordPress post type. Default is post.(Default: post)
cat_name: Category slug.( Default: ” )
num: Number: The number of posts you want to output. ( Default: 10 )
class: Unorderd list’s class name. maybe easy controllable 🙂 ( Default: ” )
orderby: Post’s order. ( Default: post_date )
order: Ascending Descending. ( Default: DESC )
length: If you want to adjust the length of post title.( Default: empty )
taxonomy: If you want to output by specifying a custom taxonomy. ( Default: empty )
term: Required for ‘taxonomy’. ( Default: empty )
more: read more link text.( Default: … )
post_format: post format
thumbnail: Display post thumbnail.( Default: on )
slider_mode: If ‘on’, display only image.( Default: empty )
Example
[list] most simple.
[list post_type=post cat_name=news num=5 class=newslist] at visual editor.
at template.
Other
It can also be used in widget 🙂
Contact
Twitter: @marushu
email: shuhei.nishimura[at]gmail.com
