Title: Replacing Variables with hardcoded values
Last modified: August 18, 2016

---

# Replacing Variables with hardcoded values

 *  [artsnova](https://wordpress.org/support/users/artsnova/)
 * (@artsnova)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/replacing-variables-with-hardcoded-values/)
 * Hi,
    Does anyone know if anything “bad” would happen if I went into the file 
   header.php and changed the line of code:
 * <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
 * to:
    <link rel=”pingback” href=”[http://www.myurl.com/blog/xmlrpc.php”&gt](http://www.myurl.com/blog/xmlrpc.php”&gt);
 * I have WP installed on a subdomain and when the URL gets filled in from the pingback_url,
   it is the actual path on the server to the directory and which does not conform
   to the URLs that are clickable.
 * The same holds for the bloginfo(‘stylesheet_url’) variable.
 * Thanks,
    Jim

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/replacing-variables-with-hardcoded-values/#post-467563)
 * no, it wont hurt anything, as long as you use the correct info.
 *  Thread Starter [artsnova](https://wordpress.org/support/users/artsnova/)
 * (@artsnova)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/replacing-variables-with-hardcoded-values/#post-467567)
 * Hi whoeveryouare,
 * Thanks. But what do you mean by “correct info?”
 * This is a follow up to another thread I started: Impact of Changing Blog URL 
   vs WordPress URL in General Options at:
    [http://wordpress.org/support/topic/91098?replies=8](http://wordpress.org/support/topic/91098?replies=8)
 * My problem is that the domain name I want WP to use is actually a subdomain and
   as such appears as a directory under my primary domain. WP is coding in my primary
   domain name as well as the subdomain in its URL and I am convinced that this 
   is preventing google from indexing my site as the only post showing up is the
   one I made originally before attempting to change to my preferred domain name.
 * Thanks.
 * Jim
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/replacing-variables-with-hardcoded-values/#post-467568)
 * you gave an example of a change. Assuming thats the proper url nothing will break.
 *  Thread Starter [artsnova](https://wordpress.org/support/users/artsnova/)
 * (@artsnova)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/replacing-variables-with-hardcoded-values/#post-467572)
 * Well I changed it, made a new post but the html still has the “bad” address that
   I don’t want to use. So any idea where the links are being built that get placed
   in the HEAD section of the web page? All my other links are fine – only these
   are wrong.
 * Thanks.
    Jim
 *  Thread Starter [artsnova](https://wordpress.org/support/users/artsnova/)
 * (@artsnova)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/replacing-variables-with-hardcoded-values/#post-467614)
 * Okay it broke. Even though the target URL was correct, something must be going
   on internally in WP. Undid the edit and the problem went away.
 * So no solution to my problem here but I did identify a problem with my server
   that is what messed up WP. Deleteing and reinstalling WP appears to have fixed
   the problem. Now all I have to do is reenter all those posts.
 * Jim.
 *  Thread Starter [artsnova](https://wordpress.org/support/users/artsnova/)
 * (@artsnova)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/replacing-variables-with-hardcoded-values/#post-467665)
 * Which I did. All was fine until a couple hours later when I went back to add 
   a new post and pretty much everything I did (all the messages and all modifications
   to the default) had up and disappeared. I have no idea what happened during the
   interval between my last successful post and the next post.
 * I guess I’ll reinstall WP… again and hope for the best.
 * Jim

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Replacing Variables with hardcoded values’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [artsnova](https://wordpress.org/support/users/artsnova/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/replacing-variables-with-hardcoded-values/#post-467665)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
