Order of categories within [wpm_tree] shortcode

Viewing 2 posts - 1 through 2 (of 2 total)
#85986

etc
Member

I am using the following shortcode:

[wpdm_tree category=”mycategory” download_link=1]

“mycategory” has the following sub-categories: 2015, 2016, 2017, 2018. And we’ll add a new sub-category for each subsequent year.

Right now the tree looks like this:

2015
2016
2017
2018

What I’d like the tree to look like:

2018
2017
2016
2015

Any order/orderby attribute added to the shortcode affects the individual downloads within the sub-categories, but not the sub-categories themselves.

I specifically created the sub-categories starting with 2015, so that each new year has a higher term ID. But there doesn’t seem to be a way to change the order of the tree from ASC to DESC. Is this possible?

Thanks for your great plugin!

#86046

etc
Member

Upon further investigation I found this support topic which is essentially the same as my own.

Ability to Order files in wpdm_tree [WPDM Extended Shortcodes]

I have applied this solution for now. Having the ability to reverse the order of the sub-categories via a shortcode attribute would be wonderful for a future update of the plugin.

Thanks,
Matt

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Order of categories within [wpm_tree] shortcode’ is closed to new replies.