I am organising posts on a blog-type website into "issues", each containing 10 articles and assigned a unique category such as
Using a sidebar widget I want to list these categories so that a user can click on "Issue 7" and they will bring up all the articles in category
issue7, namely articles 61-70.
It's straightforward to list them in alphabetical order of the category names. But how can I list them in reverse alphabetical order of those names, such that the link "Issue 3" (for category
issue3) appears before "Issue 2" and the link to the latest "issue" appears at the top?
I'm using Astra with a child theme. I've tried putting the following into
functions.php in the child theme, but to no effect:
$categories = get_terms( 'category', array( 'orderby' => 'name', 'order' => 'DESC', 'hide_empty' => 0 ) );
(I realise that once I go over Issue 9 I will probably have to rename category