Skip to content

Instantly share code, notes, and snippets.

@amdrew
Created November 13, 2013 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amdrew/7442983 to your computer and use it in GitHub Desktop.
Save amdrew/7442983 to your computer and use it in GitHub Desktop.
Modify the order and orderby parameters of the downloads shortcode in Easy Digital Downloads to get it working with the simple page ordering plugin
<?php
function my_child_theme_edd_downloads_query( $query, $atts ) {
// modify order and orderby to suit simple page ordering plugin
$query['orderby'] = 'menu_order';
$query['order'] = 'ASC';
return $query;
}
add_filter( 'edd_downloads_query', 'my_child_theme_edd_downloads_query', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment