內容簡介
首先,此外掛適用於 WordPress Multisite 網站。用戶可以選擇是否要顯示縮略圖,並決定要顯示多少篇文章。
此小工具的運作方式與其他顯示來自整個網站群的近期文章的小工具不同。對於擁有大量博客(例如數百個,甚至數千個)的網站群,需要查詢每個博客並比較最近文章的時間需要較長時間。
如果你使用某種類型的資料庫分片技術,這將需要更長的時間。這個外掛程式運作方法更簡單,當文章在網絡上發佈時,它們會被推送到包含最近文章網絡選項的數組中。
起初,此數組將是空的,因此在小工具中顯示近期文章之前需要一些時間(篇數由用戶在小工具中選擇)。由於我們是在發佈時將文章加入列表,這也使得將縮略圖添加到它上面變得容易,因此這個小工具可以顯示縮略圖,而其他許多小工具就不能做到這點。
在未來的版本中,我們將允許網絡管理員限制可以使用此小工具的用戶為超級管理員用戶。一個未來的選項也將允許網絡選項忽略博客,讓博客所有者選擇退出將他們的博客文章包含在內,或者網絡管理員可以顯式地列出要包含的博客。
外掛標籤
開發者團隊
② 後台搜尋「Hercules Recent Posts from Network」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
First of all, this plugin is for a WordPress Multisite setup. The user has the option to display thumbnails or not, and for how many posts they want to display.
This widget works differently than other widgets that display recent posts from an entire network. A network that has lots of blogs (like several hundred, or even several thousand) can take a long time to query each blog and compare the times for the most recent posts.
If you are using some sort of database sharding it will take even more time. This plugin works much more simply, as posts are published on the network they are pushed to a network option that contains an array of the most recent posts from the network.
At first this array will be empty, so it might be a bit until the widget has a full list (up to the maximum set by the user in the widget) of recent posts. Since we are adding posts to the list at the time of publishing this also makes it easy to push the thumbnail to it also, which is why this widget can show thumbnails when lots of other ones can’t.
In a future version we will allow the network admin to limit the people who can use this widget to super admin users. A future option will also allow network options for blogs to ignore (at a network level), blog owners will be able to opt out of having their blog’s posts included, or the network admin will be able to explicitly list blogs that get included.
