
內容簡介
一般使用
您需要重新生成永久鏈接WP-Admin -> 設置 -> 永久鏈接 -> 儲存變更
為了將一個特定的檔案嵌入文章/頁面中以供下載,請使用[download id="2"],其中2是您的檔案 ID。
為了將多個檔案嵌入文章/頁面以供下載,請使用[download id="1,2,3"],其中1、2、3是您的檔案 ID。
為了限制在每篇文章中顯示的嵌入式下載的數量,請使用 stream_limit 選項。
範例:[download id="2" stream_limit="4"]
這將僅在文章流中呈現前4個下載,而在查看單篇文章時顯示完整的下載清單。
為了對嵌入式下載進行排序,請使用 sort_by 和 sort_order 選項。
範例:[download id="2" sort_by="file_id" sort_order="asc"]
這將按照檔案 ID 遞增的順序對嵌入的下載進行排序。
sort_by 可以使用以下有效值:file_id、file、file_name、file_size、file_date 和 file_hits
為了選擇嵌入檔案時顯示什麼,請使用 [download id="1" display="both"],其中 1 是您的檔案 ID,both 將顯示檔案名稱和檔案描述,而 name 將僅顯示檔案名稱。請注意,這將覆蓋您在下載模板中設置的「下載嵌入檔案」範本。
為了嵌入檔案和分類,請使用 [download id="1,2,3" category="4,5,6"],其中 1、2、3 是您的檔案 ID,4、5、6 是您的分類 ID。
如果您使用預設的永久鏈接,檔案直接下載鏈接將是http://yoursite.com/index.php?dl_id=2。如果您使用美化的永久鏈接,檔案直接下載鏈接將是http://yoursite.com/download/2/,其中 yoursite.com 是您的 WordPress 網址,2 是您的檔案 ID。
直接下載分類鏈接將是http://yoursite.com/downloads/?dl_cat=3,其中 yoursite.com 是您的 WordPress 網址,downloads 是您的下載頁面名稱,3 是您的下載分類 ID。
為了將檔案直接上傳到下載資料夾,該資料夾必須先 CHMOD 為 777。您可以在下載選項中指定下載資料夾。
您可以在 WP-Admin -> 下載 -> 下載選項 中配置下載選項。
您可以在 WP-Admin -> 下載 -> 下載範本 中配置下載範本。
下載頁面
進入 WP-Admin -> 頁面 -> 新增頁面
在標題區域輸入任何標題
如果您使用美化永久鏈接,在輸入標題後,WordPress 將生成該頁面的永久鏈接。您會在永久鏈接旁邊看到一個「編輯」鏈接。
點擊「編輯」,在文本框中輸入 downloads,然後點擊「儲存」。
在文章內容區域輸入 [page_download]。
您也可以使用 [page_download category="1"],這將顯示分類 ID 為 1 的所有下載。
點擊「發布」
下載統計(附小工具)
進入 WP-Admin -> 外觀 -> 小工具
小工具的名稱是 Downloads。
建置狀態
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
General Usage
You Need To Re-Generate The Permalink WP-Admin -> Settings -> Permalinks -> Save Changes
To embed a specific file to be downloaded into a post/page, use [download id="2"] where 2 is your file id.
To embed multiple files to be downloaded into a post/page, use [download id="1,2,3"] where 1,2,3 are your file ids.
To limit the number of embedded downloads shown for each post in a post stream, use the stream_limit option.
Example: [download id="2" stream_limit="4"]
This will only display the first 4 downloads for the post when rendered in a post stream, and display the full list of downloads when viewing the single post.
To sort embedded downloads, use the sort_by and sort_order options.
Example: [download id="2" sort_by="file_id" sort_order="asc"]
This will sort the embedded downloads by file ID in ascending order.
Valid values for sort_by are: file_id, file, file_name, file_size, file_date, and file_hits
To choose what to display within the embedded file, use [download id="1" display="both"] where 1 is your file id and both will display both the file name and file desccription, whereas name will only display the filename. Note that this will overwrite the “Download Embedded File” template you have in your Download Templates.
To embed files as well as categories, use [download id="1,2,3" category="4,5,6"] where 1,2,3 are your file id and 4,5,6 are your category ids.
If you are using Default Permalinks, the file direct download link will be http://yoursite.com/index.php?dl_id=2. If you are using Nice Permalinks, the file direct download link will be http://yoursite.com/download/2/, where yoursite.com is your WordPress URL and 2 is your file id.
The direct download category link will be http://yoursite.com/downloads/?dl_cat=3, where yoursite.com is your WordPress URL, downloads is your Downloads Page name and 3 is your download category id.
In order to upload the files straight to the downloads folder, the folder must be first CHMOD to 777. You can specify which folder to be the downloads folder in Download Options.
You can configure the Download Options in WP-Admin -> Downloads -> Download Options
You can configure the Download Templates in WP-Admin -> Downloads -> Download Templates
Downloads Page
Go to WP-Admin -> Pages -> Add New
Type any title you like in the post’s title area
If you ARE using nice permalinks, after typing the title, WordPress will generate the permalink to the page. You will see an ‘Edit’ link just beside the permalink.
Click ‘Edit’ and type in downloads in the text field and click ‘Save’.
Type [page_download] in the post’s content area.
You can also use [page_download category="1"], this will display all downloads in Category ID 1.
Click ‘Publish’
Download Stats (With Widgets)
Go to WP-Admin -> Appearance -> Widgets
The widget name is Downloads.
Development
https://github.com/lesterchan/wp-downloadmanager
Translations
http://dev.wp-plugins.org/browser/wp-downloadmanager/i18n/
Credits
Plugin icon by Freepik from Flaticon
Icons courtesy of FamFamFam
Download Icon by Ryan Zimmerman
Donations
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
