WordPress.org

Support

Support » How-To and Troubleshooting » Display Alphabetised list of tags – WPMU /buddypress

Display Alphabetised list of tags – WPMU /buddypress

  • I would like to create a page that lists all tags alphabetically over 3 columns. Each tag should be a link to show all posts under that tag. And a bonus would be if we could get the number of posts in each tag to show after the tag name, something like this –

    http://www.covetish.com/boutiques

    I have tried several plugins (to do this, but none seem to really work properly with MU or are no longer supported.

    AZINdex either lists the tag name multiple times if there is more than one post per tag, OR if you elect to group it and show a subheading you then end up with a massive list because it shows the titles of every post as well.

    Multi-column Tag Map – for some reason just shows lists of either ‘log in’ or ‘welcome [username]’ instead of the tag names. The rest seems to work though. See it here – http://dshop.dropdeadgorgeousdaily.com/brands-labels-designers-etc/

    So if I could either find a way to get either of those working OR a work around I would be really, really greatful

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Moderator t-p

    @t-p

    I use this to list all tags, though in one colum. See if you can split htem in as many column you want:

    <?php
    $taxonomy = 'post_tag';
    $tax_terms = get_terms($taxonomy);
    ?>
    <ul>
    <?php
    foreach ($tax_terms as $tax_term) {
    echo '<li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $tax_term->name ) . '" ' . '>' . $tax_term->name.'</a></li>';
    }
    ?>
    </ul>

    also review this see if it helps:
    http://codex.wordpress.org/Function_Reference/get_the_tag_list

Viewing 1 replies (of 1 total)
  • The topic ‘Display Alphabetised list of tags – WPMU /buddypress’ is closed to new replies.
Skip to toolbar