Wordpress Dynamic Site URL Plugin
Behold! I just created my first Wordpress plugin: Dynamic Site URL.
Actually, strictly speaking, I didn’t write it, I just lifted it from this thread on wordpress.org and added one extra line to make it work on all parts of a Wordpress install. Hooray for this mysterious chap, who created the five lines of code that do the real work.
It’s useful if you want to run one blog under two domain names and have your links based on the currently active URL. (more…)