This plugin requires Easy Digital Downloads. It’s aimed at developers/clients who need to show a list of featured downloads.
- Provides a template tag so finely-tuned placement of featured downloads in your theme is possible.
- Provides a shortcode which will simply list all the featured downloads, without the need to enter any IDs.
- Provides a simple interface for managing featured downloads in the WordPress admin. A “feature download” checkbox will be added to each download edit/publish screen as well as the quick edit boxes. At a glance you’ll also be able to see which downloads have been featured on your website from the main download listing.
Add the “featured” attribute to the existing [downloads] shortcode provided by Easy Digital Downloads:
Template Tag Usage
The following code can be used to show the featured downloads anywhere in your theme:
echo do_shortcode( '[downloads featured="yes"]' );
You can include any other attributes supported by the [downloads] shortcode.
Building your own Query
To build your own query using WP_Query you can use the
meta_key parameter with a value of
edd_feature_download. The following example builds a simple unordered list with all the featured downloads.
<?php $args = array( 'post_type' => 'download', 'meta_key' => 'edd_feature_download', ); $featured_downloads = new WP_Query( $args ); if( $featured_downloads->have_posts() ) : ?> <ul> <?php while( $featured_downloads->have_posts() ) : $featured_downloads->the_post(); ?> <li> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php the_title(); ?> </a> </li> <?php endwhile; ?> </ul> <?php endif; wp_reset_postdata(); ?>
Ảnh màn hình
- Upload entire
/wp-content/plugins/directory, or just upload the ZIP package via ‘Plugins > Add New > Upload’ in your WP Admin
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Feature your downloads and then use either the included template tag or shortcode to show the featured downloads anywhere on your website.
There are no reviews for this plugin.
Người đóng góp & Lập trình viên
“Easy Digital Downloads Featured Downloads” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.Những người đóng góp
“Easy Digital Downloads Featured Downloads” đã được dịch qua 4 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.
Dịch “Easy Digital Downloads Featured Downloads” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
- Dev: Compatibility with EDD 3.0.
- Tweak: Update plugin author name and URI to Sandhills Development.
- Fix: Featured column not showing when the Frontend Submissions extension is active.
- New: Added a “featured” attribute to the default [downloads] shortcode in Easy Digital Downloads. Example [downloads featured=”yes”].
- Fix: Fixed a PHP notice that could occur: Undefined index: download_edit_nonce
- Fix: Fatal error on some PHP versions
- Tweak: Updated plugin information
- Initial release