Can I get a "base URL" in Wordpress within a template file?
- by alex
Usually in my PHP apps I have a base URL setup so I can do things like this
<a href="<?php echo BASE_URL; ?>tom/jones">Tom</a>
Then I can move my site from development to production and swap it easily and have the change go site wide (and it seems more reliable than <base href="" />.
I'm doing up a Wordpress theme, and I…