该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Easy Digital Downloads – Blocks

描述

EDD Blocks adds a “Downloads” block to the new WordPress editor, also known as Gutenberg.

The Downloads block allows you to display a grid of Downloads on your site similar to the [downloads] shortcode already provided by Easy Digital Downloads. The Downloads block provides a visual representation of your downloads, allowing you to see a real-time preview of your downloads as you configure the various settings.

As well as being able to display downloads, a grid of Download Categories or Download Tags can be shown.

Requirements

Features

Display a grid of Downloads

  1. Set how many downloads should show per page
  2. Set how many columns of downloads should show
  3. Show or hide the buy button
  4. Show or hide the price
  5. Show or hide thumbnail images
  6. Show or hide the excerpt
  7. Show or hide the full content
  8. Show or hide the pagination
  9. Order downloads by “Date Created”, “Earnings”, “ID”, “Price”, “Random”, “Sales”, “Slug” or “Title”
  10. Order downloads in an “Ascending” or “Descending” order
  11. Show downloads from a specific category

Display a grid of Download Categories

  1. Set how many columns of download categories should show
  2. Show or hide download category thumbnail images
  3. Show or hide download category names
  4. Show or hide download category descriptions
  5. Show or hide download category counts
  6. Show or hide empty download categories
  7. Order download categories by “Count”, “ID”, “Name” or “Slug”
  8. Order download categories in an “Ascending” or “Descending” order

Display a grid of Download Tags

  1. Set how many columns of download tags should show
  2. Show or hide download tag thumbnail images
  3. Show or hide download tag names
  4. Show or hide download tag descriptions
  5. Show or hide download tag counts
  6. Show or hide empty download tags
  7. Order download tags by “Count”, “ID”, “Name” or “Slug”
  8. Order download tags in an “Ascending” or “Descending” order

Shortcodes

Gutenberg also provides a shortcode block so we’ve added a [download_categories] and [download_tags] shortcode. Each shortcode shares the same attributes, mimicking the options of the Downloads block:

thumbnails

true (default) | false

Whether or not to show the thumbnail image.

title

true (default) | false

Whether or not to show the category or tag name.

description

true (default) | false

Whether or not to show the category or tag description.

show_empty

true | false (default)

Whether or not to show empty terms.

columns

1 | 2 | 3 (default) | 4 | 5 | 6

The number of columns.

count

true (default) | false

Whether or not to show the number of downloads in each term.

orderby

count (default) | id | name | slug

What to order the terms by.

order

ASC | DESC (default)

In which order to display the terms.

Shortcode examples

[download_categories count=”false” orderby=”name” order=”ASC” title=”false” columns=”4″]

[download_tags orderby=”id” order=”DESC” columns=”2″]

屏幕截图

  • The Downloads block and its settings

区块

该插件提供了1个区块.

  • Easy Digital Downloads – Blocks

安装

  1. Unpack the entire contents of this plugin zip file into your wp-content/plugins/ folder locally
  2. Upload to your site
  3. Navigate to wp-admin/plugins.php on your site (your WP Admin plugin page)
  4. Activate this plugin

OR you can just install it with WordPress by going to Plugins >> Add New >> and type this plugin’s name

常见问题

How do I add images to Download Categories and Download Tags?
  1. Click either “Categories” or “Tags” from the Downloads section in the WordPress sidebar
  2. Click the “Edit” link on the category or tag you wish to add an image to
  3. At the bottom of the edit screen, click “Choose Image” in the “Image” section
  4. Select an image and click “Set as image”
  5. Click “Update”
Can I change the purchase button color?

Yes, the purchase button color can be changed from Downloads → Settings → Styles. Simply change the “Default Button Color” to a color of your choosing and save.

评价

2019 年 4 月 5 日
Such a great extension, it will greatly simplify your life with basic features you need such as sorting by price, how many products per column and show or not show a short description. Thank you to the developers!!
阅读所有1条评价

贡献者及开发者

“Easy Digital Downloads – Blocks” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Easy Digital Downloads – Blocks」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Easy Digital Downloads – Blocks”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.1

  • Fix: Undefined index PHP notices could be triggered during block updates

1.0

  • Initial release