
內容簡介
快速文章清單提供額外的短代碼,可在另一個文章或頁面中包含文章清單。
主要功能包括:
透過搜尋查詢來篩選文章
透過類別(包含或排除類別)來篩選文章
透過標籤(包含或排除標籤)來篩選文章
按您選擇的文章欄位排序文章
限制列表中的文章數量,例如只顯示最近的10篇文章
按類別或標籤分組,並在類別或標籤後顯示子標題
完全控制列表CSS樣式,每個文章的HTML以及開始和結束時的HTML
短代碼使用方法
您可以在文章或頁面中使用以下短代碼:
[fu_postlist]
預設情況下,這會查詢所有文章並按文章標題排序。
以下是一些範例,介紹如何使用每個參數:
僅列出搜尋關鍵字為“stuff”的文章清單
[fu_postlist search=’stuff’]
僅列出搜尋關鍵字為“stuff”但不含有“rubbish”的文章清單
[fu_postlist search=’stuff -rubbish’]
僅列出在單一類別“Spiders”中的文章
[fu_postlist cat=’Spiders’]
可以按名稱或ID列出單一類別。
列出在類別“Spiders”或“Dogs”中的文章
[fu_postlist cat=’Spiders,Dogs’]
列出在類別“Spiders”和“Dogs”中的文章
[fu_postlist cat=’Spiders+Dogs’]
列出不屬於類別10或12的文章
[fu_postlist notcat=’10,12’]
要排除的類別必須列為逗號分隔的ID清單。
列出標籤為“rain”或“shine”的文章
[fu_postlist tag=’rain,shine’]
列出標籤為“heavy”和“metal”的文章
[fu_postlist tag=’heavy+metal’]
列出沒有標籤為“trouble”的文章
[fu_postlist nottag=’trouble’]
限制列表中列出的文章數量為10
[fu_postlist maxposts=10]
-1或省略該參數的值表示全部。
按類別分組文章。類別名稱將插入為該組的子標題
[fu_postlist groupby=cat]
按標籤分組文章
[fu_postlist groupby=tag]
按文章標題排序(預設行為)
[fu_postlist orderby=’title’]
當然,您可以按自己的喜好混合和匹配這許多參數。
外掛標籤
開發者團隊
原文外掛簡介
Fast Post Lists provides additional shortcodes to include a list of posts within another post or page.
Key features are:
Filter posts by a search query
Filter posts by category, via an inclusion or exclusion list of categories
Filter posts by tag, via an inclusion or exclusion list of tags
Order posts by a post field of your choice
Limit the number in the list, e.g. to show the 10 most recent posts
Group posts by category or tag, with subheadings displayed for the category or tag
Full control to configure list CSS styles, HTML per post and HTML at the start and end
Shortcode Usage
The shortcode to use in your posts or pages is:
[fu_postlist]
By default, this will query all posts and sort by post title.
Below are some examples of how each of the parameters can be used:
List only posts that match the search keyword ‘stuff’
[fu_postlist search=’stuff’]
List only posts that match the search keyword ‘stuff’ but don’t have the keyword ‘rubbish’
[fu_postlist search=’stuff -rubbish’]
List only posts within the single category ‘Spiders’
[fu_postlist cat=’Spiders’]
A single category can be listed by name or by id.
List posts within the categories Spiders or Dogs
[fu_postlist cat=’Spiders,Dogs’]
List posts within the categories Spiders and Dogs
[fu_postlist cat=’Spiders+Dogs’]
List posts not within the categories 10 or 12
[fu_postlist notcat=’10,12’]
Categories to exclude must be listed as a comma-separated list of id’s.
List posts with either the tags ‘rain’ or ‘shine’
[fu_postlist tag=’rain,shine’]
List posts with both the tags ‘heavy’ and ‘metal’
[fu_postlist tag=’heavy+metal’]
List posts without the tag ‘trouble’
[fu_postlist nottag=’trouble’]
Limit the number of posts listed to 10
[fu_postlist maxposts=10]
A value of -1 or the parameter omitted entirely means all.
Group posts by category. The category name will be inserted as a subheading at the start of the group
[fu_postlist groupby=cat]
Group posts by tag
[fu_postlist groupby=tag]
Order posts by post title (default behavior)
[fu_postlist orderby=’title’]
However, you may order by ‘ID’, ‘author’, ‘name’ (post slug), ‘date’, ‘rand’ etc.
Of course, you can mix and match many of these parameters to your heart’s content.
