Support » Themes and Templates » [Resolved] list tags in descending order?
9 years, 2 months ago
I’m trying to drop the new tag code into the template I’m using, and I’m having trouble getting them to display in descending order. I’ve looked at the docs in the codex, and I’m almost sure I have everything right.
Here’s what I’ve got:
<?php wp_tag_cloud('number=200&smallest=10&largest=36&order=desc&orderby=count'); ?>
And here’s what I get. (List is in the same order whether I use the order variable or not.)
Any ideas? I feel like I’m missing something very obvious.
Try it with uppercase DESC:
<?php wp_tag_cloud('number=200&smallest=10&largest=36&order=DESC&orderby=count'); ?>
Hope it helps. 🙂
This raises a good point I’ll edit the codex about this to reflect that this parameter must be uppercase.
That did it. Thanks!