Display Alphabetised list of tags - WPMU /buddypress (2 posts)

  1. kateM82
    Posted 5 years ago #

    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 -


    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.

  2. Tara
    Volunteer Moderator
    Posted 5 years ago #

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

    $taxonomy = 'post_tag';
    $tax_terms = get_terms($taxonomy);
    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>';

    also review this see if it helps:

Topic Closed

This topic has been closed to new replies.

About this Topic