To get a categories URL by category id, use the following code:

Getting a category URL using the category id
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: