內容簡介
這款外掛讓你可以在文章編輯器中直接新增/編輯/附加/取消附加/刪除/排序WordPress文章附加的檔案。與WordPress無縫整合,使用預設的WordPress附件類型,完全控制不同附件圖像尺寸的裁剪編輯器,並且不需要進行任何設置就可以將WP Better Attachments添加到自訂文章類型中。
簡碼
有關可用設置的資訊,請點此。
[wpba-attachment-list]輸出附件列表。
函數
有關可用設置的資訊,請點此。
wpba_attachments_exist() 檢查文章是否有附件。
wpba_get_attachments() 檢索附件的陣列。
wpba_attachment_list()輸出附件列表。
在GitHub上查看更多信息,請點此
如果您有任何問題,請提交一個問題。
1.3.3
添加 wpba_attachments_exist() 检查文章是否有附件。
為附件列表添加了沒有附件消息。
修正了 wpba_get_attachments() 未正確檢索文章縮略圖影像的問題
添加了設置,以全局禁用前端文件、文章縮略圖和裁剪編輯器。
修正了與Wysija Newsletter Plugin的兼容性問題。
修復其他雜項問題和一般的清理。
1.3.4
修正啟用錯誤。
1.3.5
為編輯器非啟動時的元框添加了替代樣式。
修正附件列表產生額外列表項的問題。
為附件列表中每個HTML元素添加了類和ID參數。
1.3.6
清理代碼,加入PHPDoc。
修正Firefox中無法選擇元框輸入的問題。
添加細微的設置。
在“Uploaded To”列中加入編輯模態、取消附加連結和重新附加連結的功能。
添加修改元框標題的能力。
修正裁剪編輯器未顯示正確圖像尺寸的問題。
1.3.7
1.3.8
1.3.9
新增了調查通知密鑰。
添加了文件類型過濾器。
從編譯的CSS中刪除Flexslider。
其他微調。
1.3.10
修正通知無法在子資料夾安裝中禁用的問題。
1.3.11
添加 use_caption_for_title 到 build_attachment_list。製作Mike Warwick的提議。
在元框底部添加了第二個添加附件的按鈕。製作Mike Warwick的提議。
修正了未定義的變數PHP警告。
更新了調查通知並添加了感謝消息。
1.3
此版本應該可以解決上一版本的問題並增加更多的設置控制。
1.3.4
修正啟用錯誤。
1.3.5
修正附件列表產生額外列表項的問題,為編輯器非啟動時的元框添加了替代樣式,並為附件列表中的每個HTML元素添加了類和ID參數。
1.3.6
添加細微的設置,修改元框標題,加入編輯模態、取消附加連結和重新附加連結的功能,修復其他錯誤。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Allows you to add/edit/attach/un-attach/delete/sort the files attached to your WordPress posts all from the post editor. Integrates seamlessly with WordPress using the default WordPress attachments type, full control over cropping of the different attachment image sizes crop editor and no configuration needed to add WP Better Attachments to custom post types.
Shortcodes
Information on the settings available here
[wpba-attachment-list] Outputs a list of attachments
Functions
Information on the settings available here
wpba_attachments_exist() Checks for post attachments
wpba_get_attachments() Retrieves an array of attachments
wpba_attachment_list() Outputs a list of attachments
View more information on GitHub here
If you have any issues please submit an issue.
1.3.3
Added wpba_attachments_exist() to check if a post has attachments.
Added no attachments message for attachment list.
Fixed wpba_get_attachments() not retrieving post thumbnail images correctly.
Added settings to disable front end files, post thumbnails globally, and crop editor.
Fixed compatibility issue with Wysija Newsletter Plugin.
Fixed other miscellaneous issues and general clean up.
1.3.4
Fixed activation error
1.3.5
Added alternate styling of meta box when editor is not activated.
Fixed attachment list generating extra list items
Added class and id parameters for each HTML element in the attachment list
1.3.6
Code cleanup and PHPDoc
Fixed metabox inputs not selectable in Firefox
Added granular settings
Added edit modal, un-attach link and re-attach link to Uploaded To column
Added ability to edit metabox title
Fixed crop editor not showing correct image sizes
1.3.7
1.3.8
1.3.9
Adds survey notification key
Adds filters for types of files
Removes Flexslider from compiled CSS
Miscellaneous tweaks
1.3.10
Fixes an issue with notifications not able to disable on sub folder installs.
1.3.11
Added use_caption_for_title to build_attachment_list function/shortcode. Props Mike Warwick.
Added a second add attachments button to the bottom of meta box. Props Mike Warwick.
Fixed undefined variable PHP warning.
Updates the survey notification with thank you message.
1.3.3
Should resolve issues from last update and adds more settings control
1.3.4
Fixed activation error
1.3.5
Fixed attachment list generating extra list items, Added alternate styling of meta box when editor is not activated and class/id parameters for each HTML element in the attachment list function/shortcode.
1.3.6
Added granular settings; edit modal, un-attach link and re-attach link to Uploaded To column, miscellaneous bug fixes
1.3.7
1.3.8
1.3.9
Adds filters for adding file types, removes Flexslider from CSS and miscellaneous tweaks.
1.3.10
Fixes an issue with notifications not able to disable on sub folder installs.
1.3.11
Adds use_caption_for_title option to build_attachment_list, adds “Add Attachments” button to bottom of meta box, and misc. fixes/updates.
