WordPress.org

Ready to get started?Download WordPress

Forums

get_theme_root_uri() returns different siteurl (1 post)

  1. soregums
    Member
    Posted 5 years ago #

    <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" />

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags