Support » Fixing WordPress » How to have an multipage alphabetical Tag index

  • Hi,

    I run a music website, which has articles on over a 100 different bands and each article is tagged with the bands name.

    For the last couple of weeks I’ve been trying to create an index of the bands using the tags. So far I can only get all the tags on one page split into columns, which can be seen here http://www.addictmusic.co.uk/a-z/

    What I ideally want is to have a multi-page index, which will group the pages alphabetically, with an alphabetical navbar at the top.

    So all tags under A would be on one page and all tags under B on the next and so on.

    I have tried the A-Z index plugin, but it doesn’t split the pages by letter or use the tags properly

    If anyone can help I would be very grateful

    Thanks

Viewing 15 replies - 1 through 15 (of 67 total)
  • How do you create the current list, do you use a page template?.. if so, can i see what you have so far..

    Shouldn’t be too hard to do what you’re asking…

    get_terms supports a parameter called “name__like” which allows you to return a list of tags that start with a particular letter, which makes it ideal for what you need.

    All that’s essentially needed now is some code to manage the various different pages for each letter (and course numeric values). Should be easy enough, but i’d like to see what you have currently first..

    Thanks for the reply.

    Currently I use the Multi-column Tag Map plugin

    Ok, that’s great but it doesn’t help me understand how your current page creates it’s index of post tags..

    Does the plugin do it all for you?

    yeah, it does.

    I just add a page and the following code [mctagmap columns=”2″ more=”more!” hide=”yes” num_show=”100″]

    Which then creates the index

    I’ve made a page template for you to use. You’ll need to do update the HTML to suit your theme, can you manage that?

    I have a working copy, i’m just testing it a little then i’ll provide the code for you..

    Hi Scouse,

    See the following for page template code.
    http://wordpress.pastebin.ca/1730939

    Copy the code from the bottom most area of that page (further down), paste it into an empty file, save that file as something like atozindex.php , upload the file to your theme’s folder, then create a page (or using your existing a-z one) and attach the new template (should be selectable to the right) and save.

    View the page, let me know if that’s what you had in mind (bearing in mind, i couldn’t write the HTML to fit perfectly because i’m not running the same theme). I did put some elements in to match what’s on your current page, so it should only require minor adjustment..

    EDIT: You might find this version a little easier to work with, moved the PHP stuff to the top, and the HTML stuff toward the bottom (you may find this easier).
    http://wordpress.pastebin.ca/1730948

    Thanks I’ll give it a go

    Fantastic, works like a charm.

    Happy to help.. 😉

    Thanx for code!!!!

    but, a few questions!
    page – komanda

    i’m using a http://wordpress.org/extend/plugins/template-tag-shortcodes/ plugin.
    /wp-admin/page.php?action=edit&post=1266

    [wp_tag_cloud smallest=8 largest=10 number=10000 order=ASC exclude=16,58,59,60,61,62,63,64,65,66,67,68,69,70,72,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,90,101,102,103,104,105,106,107,108,109,110,112,113,114,115,116,117,118,119,120,121,122,123,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,213,354,355,380,381]

    1) the footer is missed 🙁
    i just can’t understand what to change in your code.
    2) when click (fo example) on letter E – tags=e we don’t get a page with only E-tags.. 🙁
    3) the list of tags is not exluding what i need to exclude. 🙁

    Please, help with that..

    1) the footer is missed 🙁
    i just can’t understand what to change in your code.

    that one is dealed. was a problem with missing </div>.

    but the main problems still exist.

    Please..please, suggest any issues, i have a similar problem))
    Maybe, t31os_’s code isn’t work correctly in WP v.2.9.1 ?? differently “recalculating” tags?
    2ka81, what is you’re version?

    p.s. sorry for my english, i hope you understand me :)))

    <meta name="generator" content="WordPress 2.8.6" />

    t31os_

    help please….

    So what’s the problem specifically, that non-matching tags are being listed on some pages?

Viewing 15 replies - 1 through 15 (of 67 total)
  • The topic ‘How to have an multipage alphabetical Tag index’ is closed to new replies.