When working on new sites with wordpress it is common to work on a development server and accessing it using the account name as opposed to the main url of the site. i.e. some severs use the following form http://www.example.com/~account. When developing the site you may want to link to pages within the site, put images in posts… etc. I have developed a simple plugin that adds a blog url shortcode to wordpress which dynamically pulls in the url set in wordpress’ general settings. The usage is fairly simple
[blogurl] <!-- returns the url of the blog --> [blogurl id=12] <!-- returns the permalink of page or post with id 12 --> [blogurl temp=true] <!-- returns the themes url -->
If you would like to find out more or have support queries, please use the comment section below.