This handy little code snippet will order downloads on category pages alphabetically. If you’d like to order them differently, have a look at the order and orderby parameters of WP_Queryย and substitute accordingly.

Copy and paste the function below (mind the opening PHP tag) into your child theme’s functions.php or a custom plugin:

7 comments

  1. Thank you for the help, I am new to WP and EDD as well… using that snippets I was able to sort on cat and even to duplify it for tag displays…

Comments are closed.