Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Edit this PHP code to list taxonomy terms by letter WordPress

  • SOLVED

I have some existing PHP code that successfully lists all terms in a custom taxonomy by letter:
http://pastebin.com/gkZx6pZ7

It cycles through A, B, C, D etc, and also custom characters, like '('.

However, it doesn't give me enough control over the output. Instead, I'd like to limit it to one letter, and I can then repeat the block of code and change the letter accordingly so that I can control the positioning of each letter on the page.

So I need to:

* Limit this plugin to the letter 'A', for example. I'd then repeat this code block and just change 'A' -> 'C'
* Also output a list of any terms that don't start with a letter from A -> Z. So this will include all the numbers and brackets, punctuation etc. This is just a catch-all so that any non-alphabetical terms can still be displayed.

Thanks!

Answers (1)

2011-11-03

Julio Potier answers:

Hello

i was the guy so i'm on it ;)


Jon comments:

Hey Julio! Looking forward to it.


Julio Potier comments:

Chec this out :
http://pastebin.com/wby2rvSv


Julio Potier comments:

Screenshot of my example joined here.