The Easy Digital Downloads [ downloads ]
shortcode offers serveral order possibilities by default.
- price
- id
- random
- post_date
- title
If you need to order your downloads manually it’s a little bit more tricky.
Sort EDD Downloads
To order the downloads in the backend I use the plugin CMS tree page view.
- Enable sorting of downloads in Settings -> CMS tree page view
- Go to Downloads -> Tree view
- Drag & Drop Downloads to the preferred order
Enable order in your theme
Add the following function to your themes functions.php
function haet_edd_sort_by_menu_order( $query, $atts ) { $query['orderby'] = 'menu_order'; $query['order'] = 'ASC'; return $query; } add_filter( 'edd_downloads_query', 'haet_edd_sort_by_menu_order', 10, 2 );