WordPress.org

Ready to get started?Download WordPress

Forums

Wrong tagcloud sort order (2 posts)

  1. vitenyi
    Member
    Posted 4 years ago #

    Hi
    I'm using built-in wp tagcloud widget.
    The language is Hugarian (hu_HU), database collation is utf8_hungarian_ci, but at the front-end tagcloud doesn't show proper Hungarian sort order.
    http://www.gasztrotrip.hu

    Any idea?
    Thanks for your help in advance!

  2. toteam
    Member
    Posted 3 years ago #

    <?php
    $tags = get_tags( array ( 'orderby' => 'name', 'order' => 'ASC', 'smallest' => '12', 'largest' => '18', 'format' => 'list', 'echo' => 'true' ) );
    foreach ( (array) $tags as $tag ) {
    echo '<a>term_id) . '" rel="tag">' . $tag->name .'</a> (' . $tag->count . ') ';
    }
    ?>

    Sample site: nemcsaktuja.hu

    Szia!

Topic Closed

This topic has been closed to new replies.

About this Topic