內容簡介
WordPress 網路由許多不同的網站組成,通常都是保持獨立的。透過此外掛,網路管理員和網站管理員可以改變這一點,顯示同一網路中其他網站的內容。
所有網站可以分類在任何數量的分類中,以便結構和分組。此外,每個網站現在都可以輸入自己的描述,為讀者提供更詳細的有關該網站的信息。
最後,內容可以以多種方式顯示。有三個短碼提供高靈活性的參數和過濾器,以顯示包含最近其他網站上的帖子的網站列表。此外,該外掛還添加了一個新的 RSS,彙編所有網站或僅特定類別的帖子。它還添加了一個自定義的饋送生成器,使每個用戶都可以構建自己感興趣的網站的個性化饋送。
目前有三個短碼可用:
網路概覽(Network Overview)
短碼:[netview]
描述:顯示指定一組網站的相當詳細的概述。可以包含圖像和最近的帖子。提供兩種佈局和兩種排序方式。
選項:
include(可選,默認:所有可用)期望逗號分隔的網站ID列表。僅列出這些網站。
exclude(可選)期望逗號分隔的站點ID列表。它會列出除列出的網站之外的所有站點。
category(可選)期望逗號分隔的分類ID列表。只顯示這些分類中的網站,無論包括參數如何。排除參數仍然適用。
numposts(可選,默認值:2)期望正數或零,限制顯示的最近發布的帖子數量。
sort(可選,默認值:‘abc’)期望‘abc’或‘posts’。 ‘abc’表示按字母順序排序。 ‘posts’將按其最近帖子排序該網站。
layout(可選,默認值:‘table’)期望‘grid’或‘table’。定義列表的佈局。 Grid 使用兩列。表格使用每個站點的一行。
images(可選,默認值:‘true’)期望‘true’或‘false’。如果可用,定義是否顯示網站的標題圖像。
rss(可選,默認值:‘true’)期望‘true’或‘false’。定義是否顯示自定義 RSS 鏈接。
minposts(可選,默認值:0)期望正數或零。定義一個網站必須發布的帖子數量限制,以便顯示。
post_types(可選)考慮和顯示的其他帖子類型,類型‘post’始終包含其中。
範例:
[netview order=posts layout=grid numposts=3 images=false]
在網格佈局中列出所有可見網站,不顯示圖像,並顯示三篇最近的文章。列表按最近文章最多的網站排序。
網路單個檢視(Network Single View)
短碼:[netview-single]
描述:用自定義圖像和更突出的方式顯示一個站點。
網路索引(Network Index)
短碼:[netview-all]
描述:以按字母順序的索引形式顯示所有可見站點,不顯示任何額外信息。
外掛標籤
開發者團隊
原文外掛簡介
WordPress networks can consist of many different sites which are usually kept separate. With this plugin the network admin and the site admins can change that and display content from other sites in the same network as well.
All sites can be categorized in any number of categories to allow structure and grouping. Also each site now can enter its own description to provide the reader with more detailed information about the site.
Finally the content can be displayed in multiple ways. There are three shortcodes that offer a high flexibility in parameters and filters to display a list of sites with the most recent posts on any other site. Going further the plugin adds a new rss that aggregates posts of all sites or only certain categories. It also adds a custom feed builder which allows each user to build a customized feed with only the sites she or he is interested in.
Currently there are three shortcodes available:
Network Overview
Shortcode: [netview]
Description: Displays a rather detailed overview of a specified set of sites. Can include images and most recent posts. Offers two layouts and two ways of sorting them.
Options:
include (optional, defaults: all available) expects a comma separated list of site ids. It will only will list these sites.
exclude (optional) expects a comma separated list of site ids. It will list all sites except the listed ones.
category (optional) expects a comma separated list of category ids. Only sites within these categories will be displayed, regardless of the include parameter. The exclude parameter will still apply.
numposts (optional, default: 2) expects a positive number or zero. Limits the number of most recent published posts displayed.
sort (optional, default: ‘abc’) expects either ‘abc’ or ‘posts’. ‘abc’ means alphabetical sorting. ‘posts’ will sort the sites according to their most recent post.
layout (optional, default: ‘table’) expects either ‘grid’ or ‘table’. Defines the layout of the list. Grid uses two columns. Table uses one row per site.
images (optional, default: ‘true’) expects either ‘true’ or ‘false’. Defines whether header images of the sites are displayed if available.
rss (optional, default: ‘true’) expects either ‘true’ or ‘false’. Defines whether a custom rss feed link should be displayed.
minposts (optional, default: 0) expects a positive number or zero. Defines a limit of posts a site must have published in order to be shown.
post_types (optional) additional post_types that are taken into consideration and displayed, type ‘post’ is always included.
Example:
[netview order=posts layout=grid numposts=3 images=false]
Lists all visible sites in a grid layout without images and with the three most recent posts. The list is sorted by the site with the most recent post first.
Network Single View
Shortcode: [netview-single]
Description: Displays one site with a custom image and in a more prominent way.
Network Index
Shortcode: [netview-all]
Description: Displays all visible sites in form of an index in alphabetical order without any additional information.
