get_theme_root_uri() returns different siteurl
-
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />results in html that looks like this
<link rel="stylesheet" href="http://shortlease_comau.sites.zndynamic.com/wp-content/themes/default/style.css" type="text/css" media="screen" /> <link rel="pingback" href="http://shortlease.com.au/xmlrpc.php" />Now going through the code they both use
get_option('siteurl')However for some reason the
get_theme_root_uri()
gets a different url – it gets the pre “WordPress MU Domain Mapping” url.Seems like there is some sort of ordering issue going on here.
I’d like to get<link rel="stylesheet" href="http://shortlease.com.au/wp-content/themes/default/style.css" type="text/css" media="screen" /> <link rel="pingback" href="http://shortlease.com.au/xmlrpc.php" />
The topic ‘get_theme_root_uri() returns different siteurl’ is closed to new replies.