這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Better Attachments

外掛說明

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.

螢幕擷圖

  • Post editor button
  • The meta box
  • The added un-attach link in the media library
  • The attachment edit modal
  • The attachment editor
  • The [wpba-attachment-list] shortcode

安裝方式

  1. Upload wp-github-recent-commit to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to any page/post/custom post type and start editing your attachments with ease.
  4. Use the add attachments button to add new attachments.
  5. You can Drag and drop your attachments to arrange their menu order.
  6. Click the Un-attach link to un-attach the file from your post.

常見問題集

None so far… If you have any issues please submit an issue or fix it/submit a pull request I will try to handle it ASAP. You an also contact me at support@danholloran.com.

Installation Instructions
  1. Upload wp-github-recent-commit to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to any page/post/custom post type and start editing your attachments with ease.
  4. Use the add attachments button to add new attachments.
  5. You can Drag and drop your attachments to arrange their menu order.
  6. Click the Un-attach link to un-attach the file from your post.

使用者評論

2017 年 1 月 3 日
Doesn't create its own attachment type, just allows to better administrate the existing wordpress attachments, exactly what I wanted, thanks very much !
2016 年 12 月 18 日
Plugin is awesome, exactly what I needed for my project
2016 年 9 月 7 日
Excellent plugin. Full customable. Developer Oriented. I just want to comment that the documentation could be a little bit better. Congrats!
2016 年 9 月 3 日
This plug in works as expected- Perfectly! Well, almost perfectly. After uploading a document, one has to put the required shortcode [wpba-attachment-list] in the post edit window in order to display the attachment on the page view. To work around this and make sure that attachments show up automatically, except when there are none, I put the following code in the 'content-single.php' template: <?php echo do_shortcode('[wpba-attachment-list open_new_window="true" no_attachments_msg=" "]'); ?>
閱讀全部 29 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WP Better Attachments〉的開發相關工作。

參與者

將 WP Better Attachments 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial Release

1.0.1

  • Added support for other file types

1.1.0

  • Added attachment editor pop-up window to access attachment editor from posts page
  • Added Re-attach link to media library
  • Added delete link to each attachment in the post editor
  • Added file names for no image attachments
  • Miscellaneous cleanup

1.2.0

  • Added attachment title edit
  • Added attachment caption edit
  • Added ability to disable post types through settings
  • Added ability to disable parts of the meta box through settings

1.2.1

  • Fixed issue with settings not being an array

1.2.2

  • Fixed Un-attach/Delete links not updating attachment list
  • Fixed issue with adding files to a post from the media uploader
  • Removed support WordPress version < 3.5
  • Fixed updating of title and caption edit
  • Added setting to disable thumbnails in attachments list
  • General code cleanup

1.3.0

  • Added crop editor to media editor
  • Misc. cleanup and bug fixes

1.3.1

  • Fixed over generic selector for settings navigation

1.3.2

  • Attachment list shortcode/function
  • Improved inline title caption editor saving
  • Misc. style cleanup
  • Misc. cleanup