I have a variable that contains the slug of a category. With that slug I want to create a link to the archive page that displays all the posts in that specific category. What is the best or fastest way to go from slug to category URL?
Preferably I don't want to use a lot of variables (like when going from slug > id > url, each with a different variable). I would like a function that does one of the following, to keep the file as clean as possible.
echo get_url_function(slug) or
echo get_url_function( get_id_function (slug) )
Thanks a lot in advance!