Forums

How to display the tag cloud in list format (5 posts)

  1. TransPersonal
    Member
    Posted 2 years ago #

    I really don't like the "jumble of words" type tag cloud. Is it possible to display the tags one underneath the other in list format?

    Also is it possible to have the tags that are assigned to the most read posts be at the top while tags that are assigned to less popular posts stay at the bottom?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try using <?php wp_tag_cloud('format=list&orderby=count'); ?>

    After that, it's down the CSS styling.

  3. TransPersonal
    Member
    Posted 2 years ago #

    Thanks a lot esmi it worked! Any idea how the tags assigned to the most popular posts can be shown at the top and those assigned to less popular posts shown towards the bottom? Or is that plugin territory...

  4. mrmist
    Forum Janitor
    Posted 2 years ago #

    <?php wp_tag_cloud( 'format=list&orderby=count&order=DESC' ); ?>

    The built-in tag cloud list does not have the ability to order based on the popularity of the posts, but it can be ordered by the popularity of the tag (as my example shows).

    See also http://codex.wordpress.org/Template_Tags/wp_tag_cloud

  5. TransPersonal
    Member
    Posted 2 years ago #

    The built-in tag cloud list does not have the ability to order based on the popularity of the posts

    Thanks mrmist for letting me know, guess I should look for a plugin that can do that.

Topic Closed

This topic has been closed to new replies.

About this Topic