Baseurl in wordpress

You can use just like that or define a constant.

Website Url : get_bloginfo('url')

Template Url : bloginfo('template_directory');

Blog info : get_bloginfo()  or bloginfo(‘url’)

Related posts