內容簡介
此外掛提供了簡單的方式,讓您的部落格文章和頁面可以顯示 WordPress 外掛目錄中特定外掛的最新資訊。這個外掛是給想要在自己的部落格中顯示自己的插件詳細資料,並且希望這些詳細資料可以保持最新的外掛作者使用的。對於網誌作者來說也非常有用,因為他們可以在部落格文章中提到外掛並且保持相關資訊持續更新。
此外掛使用 WordPress 簡碼,因此在文章或頁面中將需要特定外掛的任何資訊都簡單地包含進去。
什麼意思?
您想要在部落格中提到某個特定的外掛並在博客文章中包含各種詳細資訊(例如下載次數或最後更新日期)。您可以手動輸入此信息,但這意味著幾天/幾周/幾個月後,該信息將過時。
此外掛允許您在博客文章和頁面中使用簡碼,週期性地從 WordPress 外掛目錄中獲取此信息,從而確保信息始終保持最新。
以下是一個例子
此外掛使用 WordPress 簡碼,因此在文章或頁面中將需要特定外掛的任何資訊都簡單地包含進去。
此外掛已經下載了[plugin downloaded]次!
這會在部落格文章中產生以下內容:
此外插件已經下載了 1,650 次!
下載計數將保持最新,而無需您再次修改部落格文章。
使用方法
編寫一篇新的部落格文章或頁面,或打開現有的部落格文章或頁面進行編輯。
在該畫面上的「外掛資訊」方塊中,輸入外掛的別名(參見截圖 #1)。外掛別名是 wordpress.org 上外掛頁面 URL 的最後一部分。
在博客文章中添加簡碼,如[plugin version],並保存該文章。 (這是單詞plugin而不是外掛別名)。
查看您的文章,外掛的版本號將顯示。
有關您可以顯示的所有字段的完整列表,請參見常見問題頁面。
外掛標籤
開發者團隊
原文外掛簡介
This plugin provides a simple way of displaying up-to-date information about specific plugins hosted on the WordPress Plugin Directory in your blog posts and pages. It is intended for plugin authors who want to display details of their own plugins from the WP Plugin Directory on their blog and want those details to remain up to date. It’s also useful for bloggers who may blog about plugins and would like the details in their blog posts to remain up to date.
This plugin uses WordPress shortcodes so it’s easy to include any information about a particular plugin in your post or page.
Er, what?
You want to blog about a particular plugin on your blog and include various details of it in your blog post (eg. the number of downloads or the last updated date). You could manually type this information into your post but this means that in a few days/weeks/months’ time the information will be out of date.
This plugin allows you to use shortcodes in your blog posts and pages which periodically fetches this information from the WordPress Plugin Directory, therefore ensuring the information always remains up to date.
Here’s an example
This plugin uses WordPress shortcodes so it’s easy to include any information about a particular plugin in your post or page.
This plugin has been downloaded [plugin downloaded] times!
This will produce the following content in your blog post:
This plugin has been downloaded 1,650 times!
The download count will remain current without you having to touch your blog post again.
Usage
Write a new blog post or page, or open an existing post or page for editing.
In the ‘Plugin Info’ box on that screen, type the slug of the plugin (see screenshot #1). The plugin slug is the last part of the URL of the plugin’s page on wordpress.org.
Add a shortcode to your blog entry like this: [plugin version] and save the post. (That’s the word plugin and not the slug of the plugin).
Take a look at your post and the version number of the plugin will be displayed.
For a complete list of all the fields you can display, see the FAQ page.
