WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. chutney
    Member
    Posted 6 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
    Member
    Posted 6 years ago #

    Hello

    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
    Moderator
    Posted 6 years ago #

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

    http://codex.wordpress.org/Template_Tags/wp_tag_cloud#Parameters

  4. chutney
    Member
    Posted 6 years ago #

    That did it. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic