I have around 2500 pages that I need to link to various pages on my site. Each of these 2500 pages contains stock and share information, and I want to link them to pages according the the first letter of the company's name. So BP would be under B, Apple under A etc.
Is there anyway I can automatically link these pages to the correct page without typing each one out individually, and then echo something from the company's page to appear as the anchor text?
I am not sure I have explained this very well, but I can't think how to explain it better.
Any help is appreciated.