Ready to get started?Download WordPress


[resolved] list tags in descending order? (4 posts)

  1. chutney
    Posted 7 years 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.

  2. BPartch
    Posted 7 years ago #


    Try it with uppercase DESC:

    <?php wp_tag_cloud('number=200&smallest=10&largest=36&order=DESC&orderby=count'); ?>

    Hope it helps. :)

  3. Jeremy Clark
    Posted 7 years ago #

    This raises a good point I'll edit the codex about this to reflect that this parameter must be uppercase.


  4. chutney
    Posted 7 years ago #

    That did it. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic